Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
$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.