Re: [PHP] dynamically change a variable name

2001-03-19 Thread Gary
Thanks! "Mark Maggelet" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sun, 18 Mar 2001 20:36:15 -0500, Gary ([EMAIL PROTECTED]) wrote: >Is there a way to dynamically change a variable name? For example: >I want to change the variable name $DWG to >$DWG1 >$DW

Re: [PHP] dynamically change a variable name

2001-03-18 Thread Mark Maggelet
On Sun, 18 Mar 2001 20:36:15 -0500, Gary ([EMAIL PROTECTED]) wrote: >Is there a way to dynamically change a variable name? For example: >I want to change the variable name $DWG to >$DWG1 >$DWG2 >$DWG3 >with a for loop. Is there a way to do this? you could try: for($i=1;$i<=3;$i++){ ${"DW

[PHP] dynamically change a variable name

2001-03-18 Thread Gary
Is there a way to dynamically change a variable name? For example: I want to change the variable name $DWG to $DWG1 $DWG2 $DWG3 with a for loop. Is there a way to do this? Thanks, Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c