PHP中的sort()函数集合
<div id="article_content" class="article_content clearfix"><link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/kdoc_html_views-1a98987dfd.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
<div id="content_views" class="htmledit_views">
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-arsort.html">arsort()</a></td><td>对关联数组按照键值进行降序排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-asort.html">asort()</a></td><td>对关联数组按照键值进行升序排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-krsort.html">krsort()</a></td><td>对关联数组按照键名降序排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-ksort.html">ksort()</a></td><td>对关联数组按照键名升序排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-natcasesort.html">natcasesort()</a></td><td>用"自然排序"算法对数组进行不区分大小写字母的排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-natsort.html">natsort()</a></td><td>用"自然排序"算法对数组排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-sort.html">sort()</a></td><td>对数值数组进行升序排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-uasort.html">uasort()</a></td><td>使用用户自定义的比较函数对数组中的键值进行排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-uksort.html">uksort()</a></td><td>使用用户自定义的比较函数对数组中的键名进行排序。</td></tr></tbody></table>
<table><tbody><tr><td><ahref="https://www.runoob.com/php/func-array-usort.html">usort()</a></td><td>使用用户自定义的比较函数对数组进行排序。</td></tr></tbody></table>
<p></p>
<p></p>
<p> </p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</div>
</div>
<div id="treeSkill"></div>
页:
[1]