Posted by Kimmo Laine on 07/27/06 11:18
"R" <ruthless@poczta.onet.pl> wrote in message
news:1153998135.175703.276200@m73g2000cwd.googlegroups.com...
> Kimmo Laine wrote:
>> Again, just use:
>> $$k[] = $a[$k];
>
> PHP5: Fatal error: Cannot use [] for reading
>
> but $k is not empty and
>
> echo $a[$k] works fine...
>
> when I changed above line to:
>
> $$k[] = 12345;
>
> PHP5: Fatal error: Cannot use [] for reading
>
> any idea?
Damn, I forgot about that. It should be:
${$k}[] = 12345;
That should work.
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net || Gedoon-S @ IRCnet || rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|