PHP头条
热点:

PHP获取文件平内的文件数-PHP源码


PHP获取文件平内的文件数

function getfilecounts($ff){
 
        $dir = './'.$ff;
        $handle = opendir($dir);
        $i = 0;
        while(false !== $file=(readdir($handle))){
 
        
                if($file !== '.' && $file != '..')
                {
                         $i++;
                 }
 
        }
        closedir($handle);
 
return $i;
}

以上就是PHP获取文件平内的文件数的内容,更多相关内容请关注PHP中文网(www.php1.cn)!

www.phpzy.comtrue/php/34451.htmlTechArticlePHP获取文件平内的文件数-PHP源码 PHP获取文件平内的文件数 function getfilecounts($ff){ $dir = ./.$ff; $handle = opendir($dir); $i = 0; while(false !== $file=(readdir($handle))){ if($file !== . $file != ..) { $i++; } } cl...

相关文章

PHP之友评论

今天推荐