protected static function parseUrl($url)
    {
        $url           = isset($url) ? $url : "//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
        $url           = parse_url($url);
        $url['browse'] = './';
        if (array_key_exists('browse', self::$requestMethod)
            && !empty(self::$requestMethod['browse'])
        ) {
            $url['browse'] = self::$requestMethod['browse'];
        }
        return $url;
    }
protected static function parseUrl($url)
    {
        $url           = isset($url) ? $url : "//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
        $url           = parse_url($url);
        $url['browse'] = './';
        if (array_key_exists('browse', self::$requestMethod)
            && !empty(self::$requestMethod['browse'])
        ) {
            $url['browse'] = self::$requestMethod['browse'];
        }
        return $url;
    }
protected static function parseUrl ( $ url ) { $ url = isset ( $ url ) ? $ url : "//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" ; $ url = parse_url ( $ url ) ; $ url [ 'browse' ] = './' ; if ( array_key_exists ( 'browse' , self :: $ requestMethod ) && ! empty ( self :: $ requestMethod [ 'browse' ] ) ) { $ url [ 'browse' ] = self :: $ requestMethod [ 'browse' ] ; } return $ url ; }
Pare URL into array
@param $url string URL to parse, protocol is optional
@return array $url
["host" => "www.example.com",
"path" => "/path",
"query" => "name=value",
"browse" => "../app/storage/logs/"]
Pare URL into array