php list scandir __DIR__ archive foreach list as num item echo item br

1
2
3
4
5
6
<?php
$list = scandir(__DIR__."/archive/");
foreach($list as $num => $item){
echo $item." <br>";
}