[PHP] Re: Increment alphabetical character (simple question)

2002-02-12 Thread David Robley
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"

[PHP] Re: Increment alphabetical character (simple question)

2002-02-12 Thread Philip Hallstrom
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"