7/8 - What is happenning?


#1



https://www.codecademy.com/en/courses/web-beginner-en-7I7Xm/0/7?curriculum_id=5124ef4c78d510dd89003eb8


This should be passing, correct?

My error code:

Oops, try again. Your sorted array should have at least 3 elements in it. Make sure to pass a comma as the first argument to join() !

How so? I added everything needed to complete this, and it isn't passing the lesson. I appreciate your help!


<?php
    // Create an array with several elements in it,
    // then sort it and print the joined elements to the screen
    $the_array = array("Destiny", "Uncharted", "Final Fantasy");
    sort($the_array);
    print join(", ", $the_array);
    ?>
    </p>
    <p>
    <?php
    // Reverse sort your array and print the joined elements to the screen
    rsort($the_array);
    print join(", ", $the_array);
    ?>


#2

Hi just try to refresh the page..


#3

Everytime I had to re-write the code I had to refresh the page, the gear on the sumbit button just keep spinning. I have used Chrome and IE, and the issue is still present.


#4

can you post a screenshot of your code?


#5

try to replace
print join(", ", $the_array);
by
print join(",", $the_array);
in line 6 and 13
:slight_smile: