RAWURLDECODE(3) 1 RAWURLDECODE(3)
rawurldecode - Decode URL-encoded strings
SYNOPSIS
string rawurldecode (string $str)
DESCRIPTION
Returns a string in which the sequences with percent ( %) signs followed by two hex digits have been replaced with literal characters.
PARAMETERS
o $str
- The URL to be decoded.
RETURN VALUES
Returns the decoded URL, as a string.
EXAMPLES
Example #1
rawurldecode(3) example
<?php
echo rawurldecode('foo%20bar%40baz'); // foo bar@baz
?>
NOTES
Note
rawurldecode(3) does not decode plus symbols ('+') into spaces. urldecode(3) does.
SEE ALSO
rawurlencode(3), urldecode(3), urlencode(3), RFC 3986.
PHP Documentation Group RAWURLDECODE(3)