One problem is that you call counter "counter" in one location
and call it "counter1" in another location, otherwise, I don't
think many things happen successfully inside of square brackets.
This problem, and general readability can be enhanced by putting
spaces around '=' in your code.

So,try this, it works for me:

$counter = 1;
$tmp="var".$counter;
$arrayname[$tmp] = blah;

>I have tried things like...
>
>$counter=1;
>
>$arrayname[["var".$counter1]];
>$arrayname["var$counter1"];
> 
>...and variations thereof.  Everything I have tried has failed.
>
>PLEASE can someone help??

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to