Glob() function to find files
by Rekha[ Edit ] 2010-06-17 12:31:38
Glob() function to find files
If you are searching some files using some patterns,you can use this function
For eg if you want to search files with extension .php use the following code,
$files = glob('*.php');
print_r($files);
It will output something like
Array
(
[0] => phptest.php
[1] => pi.php
[2] => post_output.php
[3] => test.php
)