Help with this exercise


#1

I have no glue in what's wrong here. This is my code:



<?php
	// Create an array with several elements in it,
	// then sort it and print the joined elements to the screen
    $numbers = array(1, 2, 3, 4, 5);
    sort($numbers);
    echo join(",", $numbers);
	?>
	</p>
	<p>
	<?php
	// Reverse sort your array and print the joined elements to the screen
    rsort($numbers);
    echo join(":", $numbers);
	?>

#2

try this. Changed your join delimeter to a comma

<?php
	// Create an array with several elements in it,
	// then sort it and print the joined elements to the screen
    $numbers = array(1, 2, 3, 4, 5);
    sort($numbers);
    echo join(",", $numbers);
	?>
	</p>
	<p>
	<?php
	// Reverse sort your array and print the joined elements to the screen
    rsort($numbers);
    //pass a comma to the join here too
    echo join(",", $numbers);
	?>

#3

Thanks a lot, seems to work, though I didn't understand what was my problem :confused:


#4

your join parameter at the bottom needs to match the one on top so the top one was join(",", $numbers);
and your bottom was join(":", $numbers);