这是显示整个数组的工作代码的一部分;
$files = filelist("./",1,1); // call the function
shuffle($files);
foreach ($files as $list) {//print array
echo "<a href=\"" . $list['name'] . "$startDir\"><h4> " . $list['name'] . " </h4></a>";
// echo "Directory: " . $list['dir'] . " => Level: " . $list['level'] . " => Name: " . $list['name'] . " => Path: " . $list['path'] ."<br>";
如何修改它以使其仅显示 10 或 15 个列表而不是全部?