In article <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED] says...
> 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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to