<?php $array = array('a','b','c','d','e'); unset($array[4]); print_r($array); ?> Array ( [0] => a [1] => b [2] => c [3] => d )