glob 遍历函数

例子 1

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

输出类似:

Array
(
[0] => target.txt
[1] => source.txt
[2] => test.txt
[3] => test2.txt
)
posted @ 2014-11-20 21:33  fleam  阅读(193)  评论(0编辑  收藏  举报