主页
PHP
PHP 数组排序
tryphp_array_rsort_num
运行 ❯
×
更改方向
保存代码
更改主题
<?php $numbers = array(4, 6, 2, 22, 11); rsort($numbers); $arrlength = count($numbers); for($x = 0; $x < $arrlength; $x++) { echo $numbers[$x]; echo "
"; } ?>
22
11
6
4
2