I have an easy array php question?

J'sylve

New member
I don't understand why I'm getting this incorrect for my php hw, heres the instructions:

* For the array named $test_array, do just 2 things:
* Assign to a variable named $the_variable the value stored in slot 4 of the array
* Store the value 1027 into slot 17 of the array
* You do not have to create $test_array, I will do that.

Here's what I placed:

$the_variable = $test_array[3];

1027= $test_array [16];

Shouldn't this be correct since we start at 0? meaning that if I want to access slot 17 I would put [16]?

or what am I doing wrong?
 
Back
Top