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

Arrays Forum

View Course » View Exercise

262 points
Ed2f6649d8a32a7165c4dd4b995d87e5?s=140&d=retro
Submitted by
Fr0z3n
about 4 years ago

what is wrong with this

Accessing Elements



<?php
$tens = array(10, 20, 30, 40, 50);
echo "$tens{2}notation;"
?>


1 vote

permalink

<?php
$tens = array(10, 20, 30, 40, 50);
echo $tens[2] ."notation" ;
?>

50 points
Picture
Submitted by
Tsotne Bareladze
about 4 years ago

1 Comment

Picture Tsotne Bareladze about 4 years ago

or {2}


-10 votes

permalink

i know da answer

583 points
8dcf1c657ea7dbaaf9236955b6f301f2?s=140&d=retro
Submitted by
milous
over 3 years ago