public static function parseQuery($url) {
        $params = array();

        $args = parse_url($url);
        if (isset($args['query'])) {
            parse_str($args['query'], $params);
        }

        return $params;
    }
public static function parseQuery($url) {
        $params = array();

        $args = parse_url($url);
        if (isset($args['query'])) {
            parse_str($args['query'], $params);
        }

        return $params;
    }
public static function parseQuery ( $ url ) { $ params = array ( ) ; $ args = parse_url ( $ url ) ; if ( isset ( $ args [ 'query' ] ) ) { parse_str ( $ args [ 'query' ] , $ params ) ; } return $ params ; }
Parse query parameters from a URL.

@param string $url URL string
@return array Query parameters
Parse query parameters from a URL .