Re: incrementing string value
| From: | Jeremy | Date: | Fri, 25 Jul 2003 16:38:34 +0000 |
| Subject: | Re: incrementing string value | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156899@lists.php.net to get a copy of this message | ||
let me make sure I understand...
$var = 'a';
$var++
print($var);
would print "b" to the screen?
Jeremy
"Carl Furst" <carl@vote.com> wrote in message
news:JDEJLFJKOCCJDAHBKCAEEEAFCHAA.carl@vote.com...
> Yep that should work as does $var--
>
>
> -----Original Message-----
> From: Jeremy [mailto:jeremy@elijahgeneration.com]
> Sent: Friday, July 25, 2003 12:28 PM
> To: php-general@lists.php.net
> Subject: [PHP] incrementing string value
>
> writing some client side javascript with some dynamic php, and I need to
be
> able to print a dynamic number of variables to the javascript.
>
> I need to print:
> var a="";
> var b="";
> ...etc.
>
> Is there a way to increment a php $var much like $var++ would work?
>
> Jeremy
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>