PHP.nl

rawurldecode

rawurldecode

Decode URL-encoded strings

string **rawurldecode** string $string

Returns a string in which the sequences with percent () signs followed by two hex digits have been replaced with literal characters. %

stringThe URL to be decoded.

Returns the decoded URL, as a string.

Voorbeeld: example

<?php

echo rawurldecode('foo%20bar%40baz'); // foo bar@baz

?>

Opmerking: > does not decode plus symbols ('+') into spaces. does. rawurldecode``urldecode

rawurlencode``urldecode``urlencodeRFC 3986