urldecode reverses replacements by urlencode(), which is used to prepare a string for use in a URL by replacing invalid characters such as /, +, ', % etc.
urlencode prepare a string for use in a URL, and urldecode does the reverse operation.
See also urlencode