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

69 points
Submitted by
Neel Shivdasani
about 3 years ago

3/7 not working despite copying code from previous example

I copied this exact syntax from the previous lesson and it didn't work. I then erased any spaces from in between the items, in case that was causing problems. Despite all of this, I still get errors about not having enough items in my list. What am I doing wrong?

  $friends = array("Egg","Tomato","Beans","Chips","Sausage");

1 vote


Put the names of three of your friends in it
$friends = array("Jack", "Jim", "Joe");

488 points
Submitted by
almost 3 years ago

1 Comment

92410b3ad1740b0ed00fec6a3f181476?s=140&d=retro Neel Shivdasani almost 3 years ago

Yeah. I'm stupid. The lessons had been giving me some other unexplained errors, and I assumed this was one of those and not my own mistake. Thank you.