I thought that I could double up chr like this: $input = "5"; $output = chr(chr($input)); echo $output so that $output would output the input. but when I try it out I don't get any response... did I just invent this? I thought I saw it somewhere... if so, is there another function that does this? Thanks!!!
I don't think this will work as you expect it as chr expects a int as input and it would get a string as input in the second instance. If you use ord it will work as you expect: <?php echo ord(chr("5"));?> PHP: