Is there a function in PHP to retrieve the decimal code of a character? If not is there anyway to solve my problem?
Many Thanks
Not that i know of.. Im not sure if you can actually make a function for it either..
Characters are not stored in decimal. Perhaps you're talking about the ASCII code (as viewable at www.asciitable.com)?
I suppose but what are other characters stored in?
Try this :
echo ord("P"); // will return 80 (ASCII #)
and reverse :
echo chr(80); // will return P