Answers for "<?php $files = scandir('img/back'); $files = array_splice($files, 2); sort($files); // this does the sorting foreach ($files as $file) { echo ''; }"

PHP
4

php get all php files in a directory

foreach(glob('includes/*.php') as $file) {
    ...
}
Posted by: Guest on March-21-2020
-1

php list directories

$dir = '.';
$directories = glob($dir . '/*', GLOB_ONLYDIR);
Posted by: Guest on July-22-2020

Browse Popular Code Answers by Language