主页
PHP
PHP arsort() 函数
tryphp_func_arsort
运行 ❯
×
更改方向
保存代码
更改主题
<?php $age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43"); arsort($age); foreach($age as $x=>$x_value) { echo "Key=" . $x . ", Value=" . $x_value; echo "
"; } ?>