$value){ if (($value == 'apple') || ($value == 'banana')){ // BUT IF THERE ARE MORE VARIABLES TO DELETE? correct this way? unset($my[$key]); } } ?>