Yep that should work as does $var--

-----Original Message-----
From: Jeremy [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:28 PM
To: [EMAIL PROTECTED]
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to