Confused on the error 7/8


#1

Here is my code for the Array II:



<?php
// Create an array with several elements in it,
// then sort it and print the joined elements to the screen
$family = array("Arlen", "Meridith", "Monica", "Gillian");
sort($family);
print join(", ", $family);
?>



<?php
// Reverse sort your array and print the joined elements to the screen
rsort($family);
print join(":", $family);
?>


Yet it gives me:I am confused as the output screen shows four elements per section.


#2

You have to join the reversed array by comma's

<?php
// Create an array with several elements in it,
// then sort it and print the joined elements to the screen
$family = array("Arlen", "Meridith", "Monica", "Gillian");
sort($family);
print join(", ", $family);
print "<br/><br/>";
?>


<?php
// Reverse sort your array and print the joined elements to the screen
rsort($family);
print join(", ", $family);
?>

#3

Thanks for the reply, Funnily enough I figured it out by reading all of the information in the exercise. I realized that while the example was using colons for the rsort the instructions stated to use commas.