Although most programmers are aware of this already, if for whatever reason
you need to 'break' out of an if() block (which, unlike switch() is not
considered a looping structure) just wrap it in an appropriate looping
structure, such as a do-while(false):
do if ($foo)
// Do something first...
// Shall we continue with this block, or exit now?
// Continue doing something...
} while (false);