This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Tannim S (Umbreo)
over 9 years

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

1 vote

Permalink

your code is ok…just reload and try

points
Submitted by khalid92
over 9 years

Answer 5435266f8c1ccca536001e2d

0 votes

Permalink

The same

points
Submitted by uruchoss
over 9 years

Answer 5456503e282ae38c5f005385

0 votes

Permalink

Reloaded 100 times - same problem… print_r($friends) gives the result, so IDK….

points
Submitted by Anton Bogachov
over 9 years

1 comments

khalid92 over 9 years

send your code.

Answer 548d95fc95e37836c90064a5

0 votes

Permalink

This is kind of a different issue but I kept getting this error. Here is my code:

points
Submitted by Joseph Finch
over 9 years

Answer 54b947d376b8fe71bf005b82

0 votes

Permalink

The spaces in between (“Qwerty”, “Asdf”, “Uiop”) might be causing the issue. try :(“Qwerty”,”Asdf”,”Uiop”)

points
Submitted by acidburn01
over 9 years

1 comments

bragon about 9 years

Yeah, it was them, stupid spaces. Thanks :)

Answer 552bd1cc51b887c787000072

0 votes

Permalink

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");
?>
points
Submitted by vr_gallagher
about 9 years