How to delete an element from an array in php?
saurabh singh
Select an image from your device to upload
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
?>