Skip to content

url_unescape()

url_unescape(<string>)

Decodes a percent-encoded <string>: each %XX becomes the byte it names, read as UTF-8, and each + becomes a space, as in a submitted web form. urldecode() decodes %XX the same way but keeps + as it is.

This function comes from TinyMUX.

> think url_unescape(hello+world%21)
hello world!

::: seealso