2
Reply

How to delete an element from an array in php?

saurabh  singh

saurabh singh

Mar 18, 2015
477
0

    http://stackoverflow.com/questions/369602/delete-an-element-from-an-array

    Munesh Sharma
    May 31, 2016
    0

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

    saurabh singh
    March 18, 2015
    0