glob() 函数返回一个包含匹配指定模式的文件名或目录的数组。
<?php
print_r(glob(“*.txt”));
?>
Array
(
[0] => target.txt
[1] => source.txt
[2] => test.txt
[3] => test2.txt
)
glob() 函数返回一个包含匹配指定模式的文件名或目录的数组。
<?php
print_r(glob(“*.txt”));
?>
Array
(
[0] => target.txt
[1] => source.txt
[2] => test.txt
[3] => test2.txt
)