Answers for "dir php someting files"

PHP
0

php get files in folder

$files = array_diff(scandir($path), array('.', '..'));
Posted by: Guest on August-27-2021
0

require all files in directory php

foreach (scandir(dirname(__FILE__)) as $filename) {
    $path = dirname(__FILE__) . '/' . $filename;
    if (is_file($path)) {
        require $path;
    }
}
Posted by: Guest on September-02-2021

Browse Popular Code Answers by Language