php sort reverse
<?php
$fruits = array("lemon", "orange", "banana", "apple");
rsort($fruits);
foreach ($fruits as $key => $val) {
echo "$key = $valn";
}
?>
php sort reverse
<?php
$fruits = array("lemon", "orange", "banana", "apple");
rsort($fruits);
foreach ($fruits as $key => $val) {
echo "$key = $valn";
}
?>
MySQL ORDER BY
SELECT
select_list
FROM
table_name
ORDER BY
column1 [ASC|DESC],
column2 [ASC|DESC],
...;
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us