glob 遍历函数

例子 1

<?php
print_r(glob("*.txt"));
?>

输出类似:

Array
(
[0] => target.txt
[1] => source.txt
[2] => test.txt
[3] => test2.txt
)
原文地址:https://www.cnblogs.com/hellowzd/p/4111557.html