PHP Multiple navigation highlights
<p>I'm using this piece of code below to highlight the "active" menu item on my global navigation.</p>

<pre><code>&lt;?php
    $path = $_SERVER['PHP_SELF'];
    $page = basename($path);
    $page = basename($path, '.php');
?&gt;

&lt;ul id="nav"&gt;
    &lt;li class="home"&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/li&gt;
    &lt;li &lt;?php if ($page == 'search') { ?&gt;class="active"&lt;?php } ?&gt;&gt;&lt;a href="#"&gt;Search&lt;/a&gt;&lt;/li&gt;
    &lt;li &lt;?php if ($page == 'help') { ?&gt;class="active"&lt;?php } ?&gt;&gt;&lt;a href="help.php"&gt;Help&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>All works great but, on a couple of pages, I have a second sub menu (sidebar menu) within a global page. </p>

<p>I basically need to add a OR type statement into the php somehow, but I haven't a clue a how.</p>

<p>Example of what i mean:</p>

<pre><code>    &lt;li &lt;?php if ($page == 'help') OR ($page == 'help-overview') OR ($page == 'help-cat-1') { ?&gt;class="active"&lt;?php } ?&gt;&gt;&lt;a href="#"&gt;Search&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>Thanks!</p>
