Hi all,
I’m a newbie at PHP, I’ve just began learning it through a series of online tutorials I’ve just learnt about arrays, and decided to look back at some of the scripts I have been working with, when I came across this one and there’s one part of it I don’t understand. (The script does work though, as far as I know). Here’s the script:
[php]
It’s probably a really easy answer or something I missed in the tutorial, but the bit i’m stuck on is this part:
[php]$answer[$start] = $start * $times;[/php]
Why is the [$start] bit in there? I thought it would just be $answer = $start * $times; ?
If someone could just clarify why that [$start] bit of coding is there, that would be great