Back To Forum Post
Main Index
Predefined Functions
chr
Returns the character with the given numeric value
[...] = optional ... = your value
[var $... = ]call chr $val=...
Example code
<!--parser:xtscript--> # hex value var $input = 0x58 var $output = call chr $val=$input print Hex input = $input<br /> print output = $output<br /> # decimal value var $input = 88 var $output = call chr $val=$input print Decimal input = $input<br /> print output = $output <!--/parser:xtscript-->
Show as text
Example output
Reload
Hex input = 0x58
output = X
Decimal input = 88
output = X
Related pages
ord
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