Directory Iteration
Directory iteration allows looping through files in a directory.
Example
Section titled “Example”$dir = opendir(".");
while (($file = readdir($dir)) !== false) {echo $file . PHP_EOL;}
closedir($dir);Directory iteration allows looping through files in a directory.
$dir = opendir(".");
while (($file = readdir($dir)) !== false) {echo $file . PHP_EOL;}
closedir($dir);