Re: Increment alphabetical character (simple question)
| From: | Philip Hallstrom | Date: | Tue, 12 Feb 2002 23:34:26 +0000 |
| Subject: | Re: Increment alphabetical character (simple question) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84501@lists.php.net to get a copy of this message | ||
Take a look at the ord() and chr() functions. They'll do what you want.
On Tue, 12 Feb 2002, phantom wrote:
> 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" ???
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>