src/PipelinerSales/ApiClient/Query/Criteria.php
private function parseHttpQuery($query)
    {
        /* can't use parse_str, because the minimum supported PHP version
         * is 5.3, which still has the magic_quotes_gpc option that affects its
         * result, so some users could hypothetically have that enabled */
        if (empty($query)) {
            return array();
        }

        $result = array();
        $parts = explode('&', $query);
        foreach ($parts as $p) {
            $keyval = explode('=', $p);
            $result[urldecode($keyval[0])] = urldecode($keyval[1]);
        }
        return $result;
    }
private function parseHttpQuery($query)
    {
        /* can't use parse_str, because the minimum supported PHP version
         * is 5.3, which still has the magic_quotes_gpc option that affects its
         * result, so some users could hypothetically have that enabled */
        if (empty($query)) {
            return array();
        }

        $result = array();
        $parts = explode('&', $query);
        foreach ($parts as $p) {
            $keyval = explode('=', $p);
            $result[urldecode($keyval[0])] = urldecode($keyval[1]);
        }
        return $result;
    }
private function parseHttpQuery ( $ query ) { /* can't use parse_str, because the minimum supported PHP version
         * is 5.3, which still has the magic_quotes_gpc option that affects its
         * result, so some users could hypothetically have that enabled */ if ( empty ( $ query ) ) { return array ( ) ; } $ result = array ( ) ; $ parts = explode ( '&' , $ query ) ; foreach ( $ parts as $ p ) { $ keyval = explode ( '=' , $ p ) ; $ result [ urldecode ( $ keyval [ 0 ] ) ] = urldecode ( $ keyval [ 1 ] ) ; } return $ result ; }
Parses a http query into a key-value array, similar to PHP's parse_str function.
@param string $query query string (without a leading question mark)
@return array
Parses a http query into a key - value array similar to PHP s parse_str function .