将原来的数组的数据倒序(反过来)输出 $a=array(1,2,4,5,6); print_r(array_reverse($a)); 结果:Array ( [0] = 6 [1] = 5 [2] = 4 [3] = 2 [4] = 1 )
$a=array(1,2,4,5,6); print_r(array_reverse($a)); 结果:Array ( [0] => 6 [1] => 5 [2] => 4 [3] => 2 [4] => 1 )
$a=array(1,2,4,5,6); print_r(array_reverse($a)); 结果:Array ( [0] => 6 [1] => 5 [2] => 4 [3] => 2 [4] => 1 )