Func directory scandir:修订历史

本页内容

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

    2022年8月17日 (星期三)

    • 当前之前 22:142022年8月17日 (三) 22:14Neo 讨论 贡献 1,721字节 +1,721 创建页面,内容为“{{DISPLAYTITLE:scandir()}}9 = PHP scandir() 函数 = PHP Directory 参考手册 列出 images 目录中的文件和目录: <sample title="" desc="" lang="php" hererun="1">example_start <?php $dir = "/images/"; // Sort in ascending order - this is default $a = scandir($dir); // Sort in descending order $b = scandir($dir,1); print_r($a); print_r($b); ?> example_end</sample> 结果: <sample ti…”