RE: [PHP] adding a variable to a variable name

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 21:41 For the current issue I'm trying to unset some variables with common names and I would like to step through them with a loop. Here's where I'm at to give you an idea but the code doesn't

[PHP] adding a variable to a variable name

2002-07-03 Thread Tom Beidler
I'm wondering if this can be done, and if so, what's the proper way to do it. For the current issue I'm trying to unset some variables with common names and I would like to step through them with a loop. Here's where I'm at to give you an idea but the code doesn't work. for ($i = 2; $i = 4;

Re: [PHP] adding a variable to a variable name

2002-07-03 Thread Bogdan Stancescu
You are on the right track with the reasoning: $unsetA = level . $i . Name; unset($$unsetA); HTH Bogdan Tom Beidler wrote: I'm wondering if this can be done, and if so, what's the proper way to do it. For the current issue I'm trying to unset some variables with common names and I would