Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
$fruits = array("lemon", "orange", "apple", "banana"); $fruits = rsort($fruits); print_r($fruits); //output will be orange, lemon, banana and apple. rsort() is the function you are looking for.
20th Jun 2017, 4:17 AM
Mohammed Shamshid
Mohammed Shamshid - avatar