September 2001
Intermediate to advanced
768 pages
32h 45m
English
string rawurldecode(string encoded_string) Decodes a URL-encoded string.
Returns:
Decoded string; FALSE if the argument passed has no length when converted to a string
Description:
rawurldecode() decodes a URL-encoded string. The function converts any hexadecimal escape triplets (%xx) within the string into the character that they represent.
Note that this function doesn’t convert plus signs to spaces.
Availability:
UNIX, Windows
Version:
3+, 4+
See also:
rawurlencode()
Example:
$string = 'This is my name with several spurious accents: Zâk Grêåñt'; $encoded_string = rawurlencode ($string); $decoded_string = rawurldecode ($encoded_string); print <<<_END_ Original String: $string Encoded String : $encoded_string ... |
Read now
Unlock full access