Finder|SplFileInfo[] name(string $pattern)
Adds rules that files must match.
You can use patterns (delimited with / sign), globs or simple strings.
$finder->name('*.php') $finder->name('/.php$/') // same as above $finder->name('test.php')
Finder|SplFileInfo[] name(string $pattern)
Adds rules that files must match.
You can use patterns (delimited with / sign), globs or simple strings.
$finder->name('*.php') $finder->name('/.php$/') // same as above $finder->name('test.php')
string | $pattern | A pattern (a regexp, a glob, or a string) |
Finder|SplFileInfo[] | The current Finder instance |
FilenameFilterIterator |
Designed by : w10schools
service@w10schools.com
Please login to continue.