|
|
Glob() function to find files - PHP
|
Views : 250
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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
) |
|
By Rekha, On - 2010-06-17 |
|
|
|