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
$arrayName = array( '1' => 'somevalue', '2' => 'somevalue1', '3' => 'somevalue3', ); print_r($arrayName[1]); // somevalue unset($arrayName[1]); print_r($arrayName);