Remove all elements from positions 3 to (n 3):
<? $pasta = array ("1", "2", "3","4","5","6","7"); $pasta = array_splice($pasta, 5, -3); print_r( $pasta); ?>