Answers for "order by desc in php"

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
0

php sort

PHP function sort(array &$array, int $flags) bool
---------------------------------------------
Sort an array
  
Parameters:
array--$array--The input array.
int--$flags--[optional] The optional second parameter sort_flags may be used to modify the sorting behavior using these values. 
Sorting type flags: SORT_REGULAR - compare items normally (don't change types).

Returns: true on success or false on failure.
Posted by: Guest on September-11-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language