简单教程
提交运行
代码编辑器:
<?php $a = array("Volvo","XC90",array("BMW","Toyota")); $reverse = array_reverse($a); $preserve = array_reverse($a,true); print_r($a); print_r($reverse); print_r($preserve);
运行结果: