src/Library/Helper/Url.php
public static function parse($url)
    {
        if (!strlen($url)) {
            return null;
        }
        $_urls = array_merge( @parse_url($url), array('params'=>array()) );
        if (isset($_urls['query'])) {
            parse_str($_urls['query'], $_urls['params']);
        }
        return $_urls;  
    }
public static function parse($url)
    {
        if (!strlen($url)) {
            return null;
        }
        $_urls = array_merge( @parse_url($url), array('params'=>array()) );
        if (isset($_urls['query'])) {
            parse_str($_urls['query'], $_urls['params']);
        }
        return $_urls;  
    }
public static function parse ( $ url ) { if ( ! strlen ( $ url ) ) { return null ; } $ _urls = array_merge ( @ parse_url ( $ url ) , array ( 'params' => array ( ) ) ) ; if ( isset ( $ _urls [ 'query' ] ) ) { parse_str ( $ _urls [ 'query' ] , $ _urls [ 'params' ] ) ; } return $ _urls ; }
Parse an URL and returns its composition as an array, with the URI query if so

@param string $url The URL to parse (required)
@return array An array of the URL components
Parse an URL and returns its composition as an array with the URI query if so