<?php $j = 0; $num = array(1, 2, 3, 4, 5); for($i = 4; $i = 0; $i--) { $num[$i] = $num[$j]; $j++; } print_r(array_reverse($num));
You have javascript disabled. You will not be able to edit any code.