Go 两数相除
11个月前
PHP 递归获取目录下所有的文件名称
public function getAllFileName($directory, &$fileArr = [])
{
$mydir = dir($directory);
// echo "\n";
while ($file = $mydir->read()) {
if ((is_dir("$directory/$file")) and ($file != ".") and ($file != "..")) {
// echo "- $file
\n";
$this->getAllFileName("$directory/$file", $fileArr);
} else if (($file != ".") and ($file != "..")) {
$fileArr[] = $directory . '/' . $file;
// echo "- $directory/$file
\n";
}
}
// echo "
\n";
$mydir->close();
return $fileArr;
}
留言簿
113.116.237.18 回复 119.123.77.243
10个月前你是哪里的?
回复119.123.77.243
11个月前太棒了!
回复