public static function isAbsolute($path)
    {
        return ((isset($path[0])
                ? ($path[0] == '/'
                    || (ctype_alpha($path[0]) && ($path[1] == ':')))
                : '')
            || (parse_url($path, PHP_URL_SCHEME) === true))
            ? true
            : false;
    }
public static function isAbsolute($path)
    {
        return ((isset($path[0])
                ? ($path[0] == '/'
                    || (ctype_alpha($path[0]) && ($path[1] == ':')))
                : '')
            || (parse_url($path, PHP_URL_SCHEME) === true))
            ? true
            : false;
    }
public static function isAbsolute ( $ path ) { return ( ( isset ( $ path [ 0 ] ) ? ( $ path [ 0 ] == '/' || ( ctype_alpha ( $ path [ 0 ] ) && ( $ path [ 1 ] == ':' ) ) ) : '' ) || ( parse_url ( $ path , PHP_URL_SCHEME ) === true ) ) ? true : false ; }
Checks if a path is an absolute path

@param string $path
@return bool
Checks if a path is an absolute path