|
Posted by mantrid on 12/28/07 20:53
> >
> > 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...os·GΫ{;Θ... NO CARRIER
>
>
> I purposely left the & out as initially it gave an error (below) with it,
so
> I thought it was just a typo
>
> Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in
> /home/iddsoftw/public_html/cgtcalc/profitloss.php on line 368
>
> Is it to do with the php version I use, which I believe is 4.something
> Also I presume the
>
>
ok
I looked at the manual. and it does look like its due to my version of php.
Seems using & to modify array's elements is only available in version 5.
What should I do?
Ian
ps I will look for the answer in the meantime myself, so you dont think Im
lazy. But its all starting to look complicated with this referencing stuff
Ian
Navigation:
[Reply to this message]
|