Using unset() functionHere is a example:$array = [0 => "a", 1 => "b", 2 => "c"]; unset($array[1]);//↑ Key which you want to delete
$array = [0 => "a", 1 => "b", 2 => "c"]; unset($array[1]);//↑ Key which you want to delete
?>
You have to use unset and reinitialize same array
http://stackoverflow.com/questions/369602/delete-an-element-from-an-array
$anArray = array("X", "Y", "Z");unset($anArray[0]);//'dumps' the content of $anArray to the page: var_dump($anArray); The output of the var_dump function will be:array(2) { [1]=> string(1) "Y" [2]=> string(1) "Z" }