This forum is now read-only. Please use our new forums at

Arrays Forum

View Course » View Exercise

662 points
Submitted by
Shivagni Rajput
almost 3 years ago

bug found in the site! its not working!!!!!

Accessing Elements

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

why is not working?? when i press submit button.. it just keeps revolving for hours.!

1 vote


Maybe Try Reloading By That Might Not Work...

373 points
Submitted by
almost 3 years ago

1 Comment

7fd49158a08eb9ee15b68ed69e31b01a?s=140&d=retro CodeGorilla373 almost 3 years ago

name the array $friends instead of $tens. That's required in it.

0 votes


Yes, there is a bug...
Try remove the semi-colon at the end of "echo $tens[2]". It worked for me.

What seems strange to me is that it's writen without semi-colon at the example above instruncitons. (open image at new window to see the whole image)
printscreen of my screen on this task

1447 points
Submitted by
Dimitris Pl
almost 3 years ago