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

Functions, Part I Forum

View Course » View Exercise

295 points
2d1f49ded1dfee061310d133c099576c?s=140&d=retro
Submitted by
share909
almost 3 years ago

can some one hel me with 6/8

<?php
// Create an array and push 5 elements on to it, then
// print the number of elements in your array to the screen
$bands = array();
arraypush($favbands, "Maroon 5");
arraypush($favbands, "Bruno Mars");
arraypush($favbands, "Nickelback");
arraypush($favbands, "Katy Perry");
arraypush($favbands, "Macklemore");
print count($bands);
?>


why the example doesnt work?


1 vote

permalink

I think it's supposed to be array_push
not array push

84 points
Picture
Submitted by
Ilana Rosenblum Guttman
over 2 years ago


-4 votes

permalink

got it np

295 points
2d1f49ded1dfee061310d133c099576c?s=140&d=retro
Submitted by
share909
almost 3 years ago