<?php $array = array ( 24 => 24, 25 => 25, 26 => 26, 27 => 27, 28 => 28, 29 => 29, ); $min = min($array) - 1; $max = max($array) + 1; $array[$min] = $min; $array[$max] = $max; print_r($array);
You have javascript disabled. You will not be able to edit any code.