Answers for "php function sort numeric array in descending order."

PHP
0

php sort reverse

<?php
$fruits = array("lemon", "orange", "banana", "apple");
rsort($fruits);
foreach ($fruits as $key => $val) {
    echo "$key = $valn";
}
?>
Posted by: Guest on July-02-2020

Code answers related to "php function sort numeric array in descending order."

Browse Popular Code Answers by Language