首页 > IT职业 > IT职场 > php遍历文件夹的方法
';
traverse($sub_dir);
} else { //如果是文件,直接输出
echo 'File in Directory ' . $path . ': ' . $file . '
';
}
}
}
traverse('xxtt');
?>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1334/viewspace-2809326/ ,如需转载,请注明出处,否则将追究法律责任。