private function split($url)
    {
        $parts = parse_url($url) + array(
                'scheme' => 'http',
                'query' => '',
                'path' => '',
            );

        $parts['prefix'] = '';
        if (isset($parts['host'])) {
            $parts['prefix'] = sprintf('%s://%s', $parts['scheme'], $parts['host']);
        }

        return $parts;
    }
private function split($url)
    {
        $parts = parse_url($url) + array(
                'scheme' => 'http',
                'query' => '',
                'path' => '',
            );

        $parts['prefix'] = '';
        if (isset($parts['host'])) {
            $parts['prefix'] = sprintf('%s://%s', $parts['scheme'], $parts['host']);
        }

        return $parts;
    }
private function split ( $ url ) { $ parts = parse_url ( $ url ) + array ( 'scheme' => 'http' , 'query' => '' , 'path' => '' , ) ; $ parts [ 'prefix' ] = '' ; if ( isset ( $ parts [ 'host' ] ) ) { $ parts [ 'prefix' ] = sprintf ( '%s://%s' , $ parts [ 'scheme' ] , $ parts [ 'host' ] ) ; } return $ parts ; }
Splits url to parts
@param string $url
@return array
Splits url to parts