public static function findFile($filename, $dirs, $isInclude = false)
    {
        if (empty($filename)) {
            return false;
        }
        foreach (array_reverse((array) $dirs) as $ns => $dir) {
            if ($dir === false) {
                continue;
            }
            if($isInclude && is_numeric($ns)) {
                $ns = '';
            }
            if ($pathname = self::path($filename, $dir)) {
                return $isInclude ? array($pathname, $ns) : $pathname;
            }
        }
        return false;
    }
public static function findFile($filename, $dirs, $isInclude = false)
    {
        if (empty($filename)) {
            return false;
        }
        foreach (array_reverse((array) $dirs) as $ns => $dir) {
            if ($dir === false) {
                continue;
            }
            if($isInclude && is_numeric($ns)) {
                $ns = '';
            }
            if ($pathname = self::path($filename, $dir)) {
                return $isInclude ? array($pathname, $ns) : $pathname;
            }
        }
        return false;
    }
public static function findFile ( $ filename , $ dirs , $ isInclude = false ) { if ( empty ( $ filename ) ) { return false ; } foreach ( array_reverse ( ( array ) $ dirs ) as $ ns => $ dir ) { if ( $ dir === false ) { continue ; } if ( $ isInclude && is_numeric ( $ ns ) ) { $ ns = '' ; } if ( $ pathname = self :: path ( $ filename , $ dir ) ) { return $ isInclude ? array ( $ pathname , $ ns ) : $ pathname ; } } return false ; }
Finds a file in an array of directories

@param string $filename
@param array $dirs
@param bool $isInclude
@return string
Finds a file in an array of directories