PHP curl_escape Function
(PHP 5 >= 5.5.0)
curl_escape — URL-encode the given string.
Description
string curl_escape ( resource $ch , string $str )
This function URL-encodes the given string» RFC 3986.
Parameters
** ch**
A cURL handle returned by curl_init().
** str**
The string to encode
Return Value
Returns the encoded string, or FALSE on failure.
Example
PHP cURL Reference Manual