Re: Letter incrementing

From: Date: Thu, 18 Mar 2004 13:22:49 +0000
Subject: Re: Letter incrementing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180812@lists.php.net to get a copy of this message
Hello Brent, Thursday, March 18, 2004, 1:16:34 PM, you wrote: BC> Does anyone know how, or even if it is possible to increment a letter from the alphabet. BC> But I need to do a $variable = "B"; BC> and then do a $variable++ that will result in BC> $variable == "C" Sure: <?php $letter = "a"; $letter++; echo $letter; ?> You'll get "b" :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#180812) next »