Example: (concise)
Uasort ($ arr, create_function ('$ a, $ B ', 'Return $ a [\ 'line _ num \ '] * ************ Function Definition and syntax *************
Array_multisort
(PHP4> = 4.0b4)
Array_multisort --- sort arrays of compound or diverse
PHP has a lot of built-in sorting functions, pros and cons of various rows;Commonly used sorting functions:Sort ()-sorts an array in ascending orderRsort ()-sorts the array in descending orderAsort ()-sorts associative arrays in ascending order
PHP has a lot of built-in sorting functions, pros and cons of various rows;Commonly used sorting functions:Sort ()-sorts an array in ascending orderRsort ()-sorts the array in descending orderAsort ()-sorts associative arrays in ascending order
Common array functions in php (8) sorting functions (sort, rsort, usort, asort, uasort, arsort, ksort, uksort, krsort, natsort, natcasesort, array_multisort), natcasesort
Test environment: php5.3.29
sort_flagsYou can use the following values
basic functions of array manipulationThe key name and value of the arrayArray_values ($arr); Gets the value of the array Array_keys ($arr), gets the key name of the array array_flip ($arr), and the values in the array are exchanged with the key
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.