Array functions 2


#1



<?php
// Create an array with several elements in it,
// then sort it and print the joined elements to the screen
$the_array =array(6,3,7,2);
sort($the_array);
print join(",",$the_array);
?>



<?php
// Reverse sort your array and print the joined elements to the screen
$the_array = array(5,3,7,1);
rsort($the_array);
print join(":",$the_array);
?>


i'm gettinng an error like this....
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() !
any help would be appreciated.....\


#2

Make sure to pass a comma as the first argument to join()