This forum is now read-only. Please use our new forums! Go to forums
Oops, try again. Did you create an array called $friends?
The above error keeps on appearing when I submit the code:
<?php $friends = array("Qwerty", "Asdf", "Uiop"); ?>
Does anyone have suggestions as to getting past this?
Answer 544972889c4e9d56660011f4
Answer 5456503e282ae38c5f005385
Reloaded 100 times - same problem… print_r($friends) gives the result, so IDK….
Answer 548d95fc95e37836c90064a5
This is kind of a different issue but I kept getting this error. Here is my code:
Answer 54b947d376b8fe71bf005b82
The spaces in between (“Qwerty”, “Asdf”, “Uiop”) might be causing the issue. try :(“Qwerty”,”Asdf”,”Uiop”)
1 comments
Yeah, it was them, stupid spaces. Thanks :)
Answer 552bd1cc51b887c787000072
I had the same problem and it only worked when I removed the break after the opening php tag. Codecademy can be funny sometimes.
So, this worked:
<?php $friends = array("do","re","mi"); ?>
This didn’t work:
<?php
$friends = array("do","re","mi");
?>
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
send your code.