$arr = array('not want to print','foo','bar');
foreach($arr as $item) {
switch($item) {
case 'foo':
$item = 'bar';
break;
case 'not want to print':
continue;
break;
}
echo $item;
}
But "not want to print
" is echoed. Why does continue don't apply to the foreach?