函数的作用是用“自然排序”算法对数组排序。
In a natural algorithm, the number 2 is less than the number 10.
函数的作用是用“自然排序”算法对数组排序。数组内所有值的键保持不变。
The natsort() function sorts an array by using a "natural order" algorithm. The values keep their original keys.
比如,compare方法比较两个字符串;sort和asort方法以与相应的php数组函数相同的方式对数组或关联数组进行排序。
For example, the compare method compares two strings; the sort and asort methods sort arrays or associative arrays in a way similar to the corresponding PHP array functions.
应用推荐