Can someone suggest a (preferably) graceful way to convert an ASCII character to its decimal equivalent using PHP?
Try ord.