All except PHP alternative to switch?
<p>So I am writing a webpage that calls a PHP script. The array grabs data from the jQuery for the php to deal with. </p>

<p>Now what I need to do is the script to run all those includes <em>except</em> the <code>$pageException</code>.  For example if <code>$pageException</code> is <code>contact-us</code>, <code>contact-us.php</code> should not be included. </p>

<p>Obviously I could achieve this using a switch statement and for the below example provide three different cases, but I feel their may be an easier way. </p>

<p>I'm betting i'm forgetting about something that is blatantly obvious here but it just doesn't come to mind...</p>

<pre><code>$new_address = $_POST['address'];

function pageData($pageException) { 
    include("about-us.php");
    include("contact-us.php");
    include("who-we-are.php");
}

pageData ($new_address);
</code></pre>
