curl_unescape

PHP 5 >= 5.5.0, PHP 7, PHP 8
curl_unescape - Decodes the given URL encoded string
Manual
Code Examples

curl_unescape( CurlHandle$handle, string$string ): string|false

This function decodes the given URL encoded string.

Parameters

handle

A cURL handle returned by curl_init.

string

The URL encoded string to be decoded.

Return Values

Returns decoded string or false on failure.

Notes

Note:

curl_unescape does not decode plus symbols (+) into spaces. urldecode does.

Changelog

Version Description
8.0.0 handle expects a CurlHandle instance now; previously, a resource was expected.

Related Functions

Example of curl_unescape

Show all examples for curl_unescape

PHP Version: