Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php scandir

<?php
$dir = "/images/";

// Sort in ascending order - this is default
$a = scandir($dir);

// Sort in descending order
$b = scandir($dir,1);

print_r($a);
print_r($b);
?>
 
PREVIOUS NEXT
Tagged: #php #scandir
ADD COMMENT
Topic
Name
1+1 =