private function prepareQueryString(array $query)
    {
        $items = array();
        foreach ($query as $key => $val) {
            $items[] = $key . '=' . urlencode($val);
        }

        return implode('&', $items);
    }
private function prepareQueryString(array $query)
    {
        $items = array();
        foreach ($query as $key => $val) {
            $items[] = $key . '=' . urlencode($val);
        }

        return implode('&', $items);
    }
private function prepareQueryString ( array $ query ) { $ items = array ( ) ; foreach ( $ query as $ key => $ val ) { $ items [ ] = $ key . '=' . urlencode ( $ val ) ; } return implode ( '&' , $ items ) ; }
Convert array parameters to POST parameters.

@param array $query parameters

@return string query string (key1=val1&key2=val2)
Convert array parameters to POST parameters .