redbrad0 Posted January 20, 2007 Share Posted January 20, 2007 Does PHP have a function to convert a letter to a number, and a number to a letter? A example would be...A = 1B = 2C = 3D = 4E = 5F = 6etc Quote Link to comment Share on other sites More sharing options...
flash gordon Posted January 20, 2007 Share Posted January 20, 2007 ord() i believehttp://us3.php.net/manual/en/function.ord.phpconverts to ASCII. if you are looking for number position in the alphabet, just write your own function. Quote Link to comment Share on other sites More sharing options...
redbrad0 Posted January 20, 2007 Author Share Posted January 20, 2007 ok so i can do ord("A") which will return 65char(65) which will return AThanks for your help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.