Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP curl_escape Function

PHP curl_escape Function

PHP Calendar Reference Manual PHP cURL Reference Manual

(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 Calendar Reference Manual PHP cURL Reference Manual