static function httpBuildQuery($data)
    {
        $pairs = array();
        foreach ($data as $key => $value) {
            if (is_array($value)) {
                $pairs[] = urlencode($value[0])."=".urlencode($value[1]);
            } else {
                $pairs[] = urlencode($key)."=".urlencode($value);
            }
        }
        return implode("&", $pairs);
    }
static function httpBuildQuery($data)
    {
        $pairs = array();
        foreach ($data as $key => $value) {
            if (is_array($value)) {
                $pairs[] = urlencode($value[0])."=".urlencode($value[1]);
            } else {
                $pairs[] = urlencode($key)."=".urlencode($value);
            }
        }
        return implode("&", $pairs);
    }
static function httpBuildQuery ( $ data ) { $ pairs = array ( ) ; foreach ( $ data as $ key => $ value ) { if ( is_array ( $ value ) ) { $ pairs [ ] = urlencode ( $ value [ 0 ] ) . "=" . urlencode ( $ value [ 1 ] ) ; } else { $ pairs [ ] = urlencode ( $ key ) . "=" . urlencode ( $ value ) ; } } return implode ( "&" , $ pairs ) ; }
Implements the PHP 5 'http_build_query' functionality.

@access private
@param array $data Either an array key/value pairs or an array
of arrays, each of which holding two values: a key and a value,
sequentially.
@return string $result The result of url-encoding the key/value
pairs from $data into a URL query string
(e.g. "username=bob&id=56").
Implements the PHP 5 http_build_query functionality .