2
Reply

How to delete an element from an array in php?

saurabh  singh

saurabh singh

9y
497
0
Reply

    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" }