protected function globByDirs(array $dirs, $pattern)
    {
        $dirs = implode(',', $dirs);
        $pattern = '{' . $dirs . '}' . $pattern;

        return glob($pattern, GLOB_BRACE | GLOB_NOSORT);
    }
protected function globByDirs(array $dirs, $pattern)
    {
        $dirs = implode(',', $dirs);
        $pattern = '{' . $dirs . '}' . $pattern;

        return glob($pattern, GLOB_BRACE | GLOB_NOSORT);
    }
protected function globByDirs ( array $ dirs , $ pattern ) { $ dirs = implode ( ',' , $ dirs ) ; $ pattern = '{' . $ dirs . '}' . $ pattern ; return glob ( $ pattern , GLOB_BRACE | GLOB_NOSORT ) ; }
Find files matching a pattern in specified directories

@param array $dirs
@param string $pattern
@return array
Find files matching a pattern in specified directories