Posted by Ivαn Sαnchez Ortega on 12/28/07 16:51
mantrid wrote:
[...]
> I haven't used arrays much so im probably overlooking something obvious.
[...]
You overlooked something, but it is not so obvious.
I said:
foreach($data as $key=>&$item)
but you wrote:
foreach($data as $key=>$item)
See the difference? Now, your homework is to go back to the PHP manual and
read everything about references and the "foreach" language construct ;-)
--
----------------------------------
IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
No, mamΓ‘, no...ΒΒΒ·GΓ{;Γ... NO CARRIER
[Back to original message]
|