From the http://php.net/manual/en/control-structures.continue.php:
Note: Note that in PHP the switch statement is considered a looping structure for the purposes of continue.
So use continue 2;
to continue the loop that contains it.
You also have a mismatch between $arr
and case
. The first word in the array value is no
, but you're checking for not
in the case
.