protected function getStringQueryParameters($string)
    {
        $query = parse_url($string, PHP_URL_QUERY);

        $params = [];
        if ($query) parse_str($query, $params);

        return $params;
    }
protected function getStringQueryParameters($string)
    {
        $query = parse_url($string, PHP_URL_QUERY);

        $params = [];
        if ($query) parse_str($query, $params);

        return $params;
    }
protected function getStringQueryParameters ( $ string ) { $ query = parse_url ( $ string , PHP_URL_QUERY ) ; $ params = [ ] ; if ( $ query ) parse_str ( $ query , $ params ) ; return $ params ; }
Get the query parameters used in a string

@param string $string
@return array
Get the query parameters used in a string