phpでglob()を使用してファイルを検索

phpコード:
//すべての拡張子phpのファイルを取得
$files = glob(‘*.php’);
print_r($files);
/* 出力:
Array
(
[0] => phptest.php
[1] => pi.php
[2] => post_output.php
[3] => startnews24_test.php
)
*/

 

PHP

Posted by arkgame