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

Arrays Forum

View Course » View Exercise

1175 points
A5ba1285e8142aa3740cc08378e41d6c?s=140&d=retro
Submitted by
Reianna-Bryant
almost 2 years ago

How come the is no result shown?

If the array is already coded on the page, how come we don't see the example result in the result screen?


0 votes

permalink

Cause there is no echo ?

<?php
    $array = array("Egg", "Tomato", "Beans");
    echo $array[0];
?>

And now there is a result in the result screen :)

BR
D,

1409 points
588b2ac3e1281365f0000133_918398059
Submitted by
Codmakr
almost 2 years ago