The glob may contain the wildcard "*". This wildcard matches any number
of characters, *including* directory separators.
php
foreach (Glob::glob('/project/**.twig') as $path) {
do something...
}
public static glob ( string $glob, integer $flags ) : string[] | ||
$glob | string | The canonical glob. The glob should contain forward slashes as directory separators only. It must not contain any "." or ".." segments. Use the "webmozart/path-util" utility to canonicalize globs prior to calling this method. |
$flags | integer | A bitwise combination of the flag constants in this class. |
return | string[] | The matching paths. The keys of the array are incrementing integers. |