private function buildQuery($parts)
    {
        $return = array();
        foreach ($parts as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $v) {
                    $return[] = urlencode($key) . "=" . urlencode($v);
                }
                continue;
            }
            $return[] = urlencode($key) . "=" . urlencode($value);
        }
        return implode('&', $return);
    }
private function buildQuery($parts)
    {
        $return = array();
        foreach ($parts as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $v) {
                    $return[] = urlencode($key) . "=" . urlencode($v);
                }
                continue;
            }
            $return[] = urlencode($key) . "=" . urlencode($value);
        }
        return implode('&', $return);
    }
private function buildQuery ( $ parts ) { $ return = array ( ) ; foreach ( $ parts as $ key => $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ v ) { $ return [ ] = urlencode ( $ key ) . "=" . urlencode ( $ v ) ; } continue ; } $ return [ ] = urlencode ( $ key ) . "=" . urlencode ( $ value ) ; } return implode ( '&' , $ return ) ; }
A version of build query that allows for multiple
duplicate keys.
@param $parts array of key value pairs
@return string
A version of build query that allows for multiple duplicate keys .