Array Bug


The project requirement is "Use echo to output the third item in $tens.", and so I did but it says I didn't. I tried refreshing and trying again. The output is 40 like it should.

$tens = array(10, 20, 30, 40, 50);
        echo $tens[3];


Hi the first element is at the index 0(which is 10) so the third wil be at index..


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.