|
Posted by Brian on 03/28/07 15:21
>>Below is the full code, I get an error saying
>>"Fatal error: Cannot use [] for reading in /var/www/...."
>>on this line, it will not add to the array?
>>
>>$$k[] = $file; // add file to array
Geoff Wrote
> Variable variables doesn't work with arrays like this. I solved it by
> using a multi dimensional array but some people posted some alternatives
> on one of the groups recently. (solutions involved curly brackets I
> think)
Hi Geoff
Thanks for the replay, yes curly brackets did
work, the line was changed to
${$k}[] = $file;
Many thanks
Brain
--------------------------------------------------------------------------------
I am using the free version of SPAMfighter for private users.
It has removed 1505 spam emails to date.
Paying users do not have this message in their emails.
Try SPAMfighter for free now!
Navigation:
[Reply to this message]
|