Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rawurldecode(3) [php man page]

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)

Check Out this Related Man Page

CURL_UNESCAPE(3)							 1							  CURL_UNESCAPE(3)

curl_unescape - Decodes the given URL encoded string

SYNOPSIS
string curl_unescape (resource $ch, string $str) DESCRIPTION
This function decodes the given URL encoded string. PARAMETERS
o $ch -A cURL handle returned by curl_init(3). o $str - The URL encoded string to be decoded. RETURN VALUES
Returns decoded string or FALSE on failure. EXAMPLES
Example #1 curl_escape(3) example <?php // Create a curl handle $ch = curl_init('http://example.com/redirect.php'); // Send HTTP request and follow redirections curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_exec($ch); // Get the last effective URL $effective_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); // ie. "http://example.com/show_location.php?loc=M%C3%BCnchen" // Decode the URL $effective_url_decoded = curl_unescape($ch, $effective_url); // "http://example.com/show_location.php?loc=Munchen" // Close the handle curl_close($ch); ?> NOTES
Note curl_unescape(3) does not decode plus symbols (+) into spaces. urldecode(3) does. SEE ALSO
curl_escape(3), urlencode(3), urldecode(3), rawurlencode(3), rawurldecode(3). PHP Documentation Group CURL_UNESCAPE(3)
Man Page