src/Youtube.php
public static function _parse_url_query($url)
    {
        $queryString = parse_url($url, PHP_URL_QUERY);

        $params = array();

        parse_str($queryString, $params);

        if (count($params) === 0) {
            return $params;
        }

        return array_filter($params);
    }
public static function _parse_url_query($url)
    {
        $queryString = parse_url($url, PHP_URL_QUERY);

        $params = array();

        parse_str($queryString, $params);

        if (count($params) === 0) {
            return $params;
        }

        return array_filter($params);
    }
public static function _parse_url_query ( $ url ) { $ queryString = parse_url ( $ url , PHP_URL_QUERY ) ; $ params = array ( ) ; parse_str ( $ queryString , $ params ) ; if ( count ( $ params ) === 0 ) { return $ params ; } return array_filter ( $ params ) ; }
Parse the input url string and return an array of query params

@param  string $url the URL
@return array      array of query params
Parse the input url string and return an array of query params