How to halt execution of current PHP script?
<p>I'm writing some simple PHP to back up a microsite. In my controller, I have a quick security/sanity check</p>

<pre><code>if(!preg_match('/^[a-z]$/i', $req)) { gohome(); }
</code></pre>

<p>I'd like to continue my the main code after this, but for aesthetics, I'd like to avoid putting the rest of it inside the <code>else</code> block. What's the best way around this? I can think of setting up a fairly simple wrapper to handle authentication and security logic, but I feel like I just missed a really simple solution in my training.</p>
