PHP glob May 11, 2012 Pramod T P It finds pathnames matching a pattern Example <?php foreach (glob(“*.txt”) as $file) { echo $file; } ?>