Can someone suggest a (preferably) graceful way to convert an ASCII character to its decimal equivalent using PHP?
ord() returns the integer ascii value of a character
chr() returns a character from an ascii value