php dir dir OpenServer while false content dir- read echo content br

1
2
3
4
5
6
<?php
$dir = dir("C:/OpenServer");
while (false !== ($content = $dir->read())) {
echo $content . "<br>";
}
?>