The scandir( ) function takes a minimum of one parameter with an optional second. : scandir « File Directory « PHP






The scandir( ) function takes a minimum of one parameter with an optional second.

 
<?
    $files = scandir(".", 1);
    var_dump($files);
?>
  
  








Related examples in the same category

1.Listing All Files in the Current Directory
2.scandir.php