public static function glob($glob, $flags = 0)
    {
        $results = iterator_to_array(new GlobIterator($glob, $flags));

        sort($results);

        return $results;
    }
public static function glob($glob, $flags = 0)
    {
        $results = iterator_to_array(new GlobIterator($glob, $flags));

        sort($results);

        return $results;
    }
public static function glob ( $ glob , $ flags = 0 ) { $ results = iterator_to_array ( new GlobIterator ( $ glob , $ flags ) ) ; sort ( $ results ) ; return $ results ; }
Globs the file system paths matching the glob.

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...
}
```

@param string $glob  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.
@param int    $flags A bitwise combination of the flag constants in this
class.

@return string[] The matching paths. The keys of the array are
incrementing integers.
Globs the file system paths matching the glob .