public static function FromString($url)
    {
        $parts = \parse_url($url);
        $scheme = isset($parts['scheme']) ? $parts['scheme'] : '';
        $host = isset($parts['host']) ? $parts['host'] : '';
        $port = isset($parts['port']) ? $parts['port'] : '';
        $user = isset($parts['user']) ? $parts['user'] : '';
        $password = isset($parts['pass']) ? $parts['pass'] : '';
        $path = isset($parts['path']) ? $parts['path'] : '';
        $query = isset($parts['query']) ? $parts['query'] : '';
        $fragment = isset($parts['fragment']) ? $parts['fragment'] : '';
        return new self($scheme, $host, $port, $user, $password, $path, $query, $fragment);
    }
public static function FromString($url)
    {
        $parts = \parse_url($url);
        $scheme = isset($parts['scheme']) ? $parts['scheme'] : '';
        $host = isset($parts['host']) ? $parts['host'] : '';
        $port = isset($parts['port']) ? $parts['port'] : '';
        $user = isset($parts['user']) ? $parts['user'] : '';
        $password = isset($parts['pass']) ? $parts['pass'] : '';
        $path = isset($parts['path']) ? $parts['path'] : '';
        $query = isset($parts['query']) ? $parts['query'] : '';
        $fragment = isset($parts['fragment']) ? $parts['fragment'] : '';
        return new self($scheme, $host, $port, $user, $password, $path, $query, $fragment);
    }
public static function FromString ( $ url ) { $ parts = \ parse_url ( $ url ) ; $ scheme = isset ( $ parts [ 'scheme' ] ) ? $ parts [ 'scheme' ] : '' ; $ host = isset ( $ parts [ 'host' ] ) ? $ parts [ 'host' ] : '' ; $ port = isset ( $ parts [ 'port' ] ) ? $ parts [ 'port' ] : '' ; $ user = isset ( $ parts [ 'user' ] ) ? $ parts [ 'user' ] : '' ; $ password = isset ( $ parts [ 'pass' ] ) ? $ parts [ 'pass' ] : '' ; $ path = isset ( $ parts [ 'path' ] ) ? $ parts [ 'path' ] : '' ; $ query = isset ( $ parts [ 'query' ] ) ? $ parts [ 'query' ] : '' ; $ fragment = isset ( $ parts [ 'fragment' ] ) ? $ parts [ 'fragment' ] : '' ; return new self ( $ scheme , $ host , $ port , $ user , $ password , $ path , $ query , $ fragment ) ; }
Creates an url from string
@param string $url
@return Url
Creates an url from string