令和元年/ 2019-06-26 11:49
PHP, File, List


$dir = dirname(__FILE__). '/ul';
$res = opendir($dir);

while($filename = readdir($res)):
    if(!preg_match("/\.csv$/u", $filename))continue;
    echo "{$dir}/{$filename}\n";
endwhile;