Answers for "php sort table ascending descending"

SQL
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
3

MySQL ORDER BY

SELECT 
   select_list
FROM 
   table_name
ORDER BY 
   column1 [ASC|DESC], 
   column2 [ASC|DESC],
   ...;
Posted by: Guest on October-19-2020

Code answers related to "php sort table ascending descending"

Code answers related to "SQL"

Browse Popular Code Answers by Language