Is there an easy way to delete an element from an array using PHP, such that foreach ($array) no longer includes that element?
foreach ($array)
I thought that setting it
This may help...
"red", "b"=>"green", "c"=>"blue", "d"=>"yellow"); $a2 = array("a"=>"purple", "b"=>"orange"); array_splice($a1, 0, 2, $a2); print_r($a1); ?>
The result will be:
Array ( [0] => purple [1] => orange [c] => blue [d] => yellow )