Back To Forum Post
Main Index
Predefined Functions
urldecode
Decodes a urlencoded string
[...] = optional ... = your value
[var $... = ]call urldecode $val=...
Notes
For strings with spaces encoded as
%20
use
rawurldecode
Example code
<!--parser:xtscript--> var $input =%21+%22%C2%A3%24%25%5E%26%2A var $output = call urldecode $val=$input print input = $input<br /> print output = $output <!--/parser:xtscript-->
Show as text
Example output
Reload
input = %21+%22%C2%A3%24%25%5E%26%2A
output = ! "£$%^&*
Related pages
urlencode
rawurlencode
rawurldecode
Quick index
abs
addslashes
base64_decode
base64_encode
bin2hex
br2nl
ceil
chr
crc32
dechex
floor
hex2bin
hexdec
htmlspecialchars
lcfirst
ltrim
md5
mt_rand
nl2br
ord
pi
pow
rawurldecode
rawurlencode
round
rtrim
sha1
str_ireplace
str_pad
str_repeat
str_replace
str_shuffle
strip_tags
stripos
stripslashes
stristr
strlen
strpos
strrchr
strrev
strripos
strrpos
strstr
strtolower
strtoupper
substr
trim
ucfirst
ucwords
urldecode
urlencode