What is wrong with this code? Array function 2


#1



<?php

$the_array=array(5,7,4,9);
sort($the_array);
echo join(",",$the_array);

?>
</p>
<p>
<?php

rsort($the_array);
echo join(":",$the_array);
?>
</p>

where am i getting wrong?


#2

Hi
Your code is correct and works. I think that the problem comes from the output which doesn't match what codecademy is waiting for. Could you switch the semi-colon to a comma , in the following line?