7. Array Function II


#1

I don't know what is the problem.
Can somebody help me
This is the code:

<?php
    // Create an array with several elements in it,
    // then sort it and print the joined elements to the screen
    $the_array = array(12, 5, 25, 58, 2, 89);
    sort($the_array);
    print join(",", $the_array);
    ?>
    </p>
    <p>
    <?php
    // Reverse sort your array and print the joined elements to the screen
    $the_array = array(0, 45, 68, 12, 7, 90);
    rsort($the_array);
    print join(":", $the_array);
    ?>

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


#2

The original array is still in scope even though this is a new PHP block. We do not need to redefine it. This line may be removed.


#3

Thank you!
I didn't realize...