src/Guzzle/Http/QueryString.php
public function encodeValue($value)
    {
        if ($this->urlEncode == self::RFC_3986) {
            return rawurlencode($value);
        } elseif ($this->urlEncode == self::FORM_URLENCODED) {
            return urlencode($value);
        } else {
            return (string) $value;
        }
    }
public function encodeValue($value)
    {
        if ($this->urlEncode == self::RFC_3986) {
            return rawurlencode($value);
        } elseif ($this->urlEncode == self::FORM_URLENCODED) {
            return urlencode($value);
        } else {
            return (string) $value;
        }
    }
public function encodeValue ( $ value ) { if ( $ this -> urlEncode == self :: RFC_3986 ) { return rawurlencode ( $ value ) ; } elseif ( $ this -> urlEncode == self :: FORM_URLENCODED ) { return urlencode ( $ value ) ; } else { return ( string ) $ value ; } }
URL encodes a value based on the url encoding type of the query string object

@param string $value Value to encode

@return string
URL encodes a value based on the url encoding type of the query string object