Is it possible to remove an array from an array? This is how the array looks...
[1042] => Array
(
[contact_name] => XXX
[email] =>
[id] => XXX
)
[1043] => Array
(
[contact_name] => XXX
[email] => XXX
[id] => XXX
)
code...
foreach($contacts as &$contact){
if(empty($contact['email']) || $contact['email'] == '')
unset($contact);
}
unset($array[1043]);