public static function find($filename, $dirs = array())
    {
        if (empty($dirs)) {
            if ($filename = realpath($filename)) {
                return $filename;
            }
        } else {
            foreach ((array) $dirs as $dir) {
                $pathname = self::join($dir, $filename);
                if ($pathname = realpath($pathname)) {
                    return $pathname;
                }
            }
        }
        return false;
    }
public static function find($filename, $dirs = array())
    {
        if (empty($dirs)) {
            if ($filename = realpath($filename)) {
                return $filename;
            }
        } else {
            foreach ((array) $dirs as $dir) {
                $pathname = self::join($dir, $filename);
                if ($pathname = realpath($pathname)) {
                    return $pathname;
                }
            }
        }
        return false;
    }
public static function find ( $ filename , $ dirs = array ( ) ) { if ( empty ( $ dirs ) ) { if ( $ filename = realpath ( $ filename ) ) { return $ filename ; } } else { foreach ( ( array ) $ dirs as $ dir ) { $ pathname = self :: join ( $ dir , $ filename ) ; if ( $ pathname = realpath ( $ pathname ) ) { return $ pathname ; } } } return false ; }
Finds the first file that match the filename in any of
the specified directories.

@param string $filename
@param array $dirs
@return string
Finds the first file that match the filename in any of the specified directories .