In article <[EMAIL PROTECTED]>, 
> How do I get the ASCII value of a character.... increment it by one...
> and convert back to a character.
> For example:
> I want to grab a char such as "C" and increment it to "D" ???

ord() and chr() will do this.

$oldchar = "C";
$newchar = chr(ord($oldchar) + 1);

should be close to the mark. NB untested!!

David Robley
Temporary Kiwi!

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to