$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;
}
しかし、「not want to print
」はエコーされます。continue が foreach に適用されないのはなぜですか?