ASCII Code

chr($i) returns a character specified by the ASCII code $i. ord($s) returns the ASCII value of the first character of $s.