Converting to and from ASCII: chr() and ord() | Practical PHP ... To convert to ASCII from textual characters, you should use the chr() function, which takes an ASCII value as its only parameter and returns the text equivalent if ...