Search Results
rawurldecode (PHP 4, PHP 5, PHP 7, PHP 8) rawurldecode — Decode URL-encoded strings
Jul 11, 2025 · The rawurldecode () function is an inbuilt function in PHP which is used to decode the encoded string. This function returns the decoded URL (original URL string) as a string.
- Php Version
- Example 1
- Example 3
- Example 4
First introduced in core PHP 4, the rawurldecode()function continues to work easily in PHP 5, PHP 7, and PHP 8 versions.
First we will show you the basic example of the PHP URL rawurldecode()function to get the decoded string of the given encoded string or URL.
Now the below code retrieves decoded path of the given URL encoded path with the help of rawurldecode()function.
In the following example, we are using the rawurldecode()function to get the decoded URL-encoded query parameters.
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8 Decode URL-encoded strings
The rawurldecode() function decodes percent-encoded characters represented by a percent sign (%) followed by two hexadecimal digits back to their original characters, and converts %20 into a space character.
Returns a string in which the sequences with percent (%) signs followed by two hex digits have been replaced with literal characters.
PHP cURL Tutorial: Using cURL to Make HTTP Requests cURL is a powerful PHP extension that allows you to communicate with different servers using various protocols, including HTTP, HTTPS, FTP, and more. ...
