I'm about to use a goto statement
<p>Save me from raptor death - is there any better way to handle this kind of structure?</p>

<pre><code>while(condition) {
    $this-&gt;phase1();
    $this-&gt;phase2();
    $this-&gt;phase3();
    $this-&gt;phase4();
}
</code></pre>

<p>Throughout either one of those methods, the <em>condition</em> could be met. <em>IMMEDIATELY</em> after the condition is met, the loop <strong>MUST</strong> exit. If I could call <code>break;</code> inside of <code>phase2();</code> for example, I wouldn't need a goto statement (but of course, that would throw an error).</p>
