Posted by ja on 11/03/07 21:58
"J.O. Aho" <user@example.net> wrote in message
news:5p484gFp9fppU2@mid.individual.net...
> ja wrote:
>> I'm learning php and I'm already stuck on arrays :(
>>
>> I don't know if I'm getting information overload or what, but I'm really
>> confused on square brackets vs. parethesis. I see them used almost
>> interchangedly (if that's a word??) and I'm really having a problem
>> grasping
>> when to use which on arrays. Is there a simple explanation when one is
>> used
>> in arrays and when the other is suppose to be used? I first thought that
>> square brackets are used when assigning a value but then further reading
>> I
>> see that's not so.
>
> Simply:
>
> $array[]
>
> function()
>
Ah. I don't think I got to functions yet. So are you saying that to use the
brackets is only with an existing variable
Sorry I don't understand.
Thanks
[Back to original message]
|