ckroon
Posts: 869
|
| Posted: 10/25/2010, 3:27 PM |
|
I need some code that will take a number: ex: '12345'
and return the Text Values of each number:
Result = "ABCDE"
Any takers?
_________________
Walter Kempees...you are dearly missed. |
 |
 |
saseow
Posts: 744
|
| Posted: 10/25/2010, 10:45 PM |
|
Have a look at the ascii table here: http://www.asciitable.com/
You can possible have 10 numbers i.e. 0-9 so which will correspond to A to J if you add 64 to each of the numbers in your number variable.
Then use php's chr function found here: http://php.net/manual/en/function.chr.php
That should do it.
|
 |
 |
|