Array Bug


#1


https://www.codecademy.com/courses/web-beginner-en-8a35h/0/4?curriculum_id=5124ef4c78d510dd89003eb8#


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];


#2

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


#3

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