<?php print_r(glob("*.txt")); ?>
输出类似:
Array ( [0] => target.txt [1] => source.txt [2] => test.txt [3] => test2.txt )