$arr = [1,2,3,4,5]; $newArr = array_splice($arr, 0, 3); echo '<pre>'; print_r($arr); print_r($newArr);