" : " ,-----Folks! Error Example ( 7. Array Functions II)


#1



<?php
// Create an array with several elements in it,
// then sort it and print the joined elements to the screen
$the_array;

$the_array = array(4, 1, 3, 2);
sort ($the_array);
print join ("," , $the_array);
?>



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


***************************************************************@@@@@@@@@

https://www.codecademy.com/en/courses/web-beginner-en-7I7Xm/0/7?curriculum_id=5124ef4c78d510dd89003eb8

Pay attention to the examples located on the left side bar. The second example : RSORT has the COLON, instead of a COMMA. This will definitely throw the code off to not pass because RSORT and SORT uses the COMMAS.


Replace this line with your code.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.