Unexpected = in PHP snipped I found - how do I fix?
<p>I'm a complete PHP noob, and so I don't know how to troubleshoot this myself. I found this page which I'm trying to implement: <a href="http://webdevjunk.com/coding/css/17/php-menu-includes-with-css-style-to-highlight-active-page-link/" rel="nofollow">http://webdevjunk.com/coding/css/17/php-menu-includes-with-css-style-to-highlight-active-page-link/</a></p>

<p>I tried to put the snippets into <a href="http://www.paulgrantdesign.com/test77/photography/index.php" rel="nofollow">http://www.paulgrantdesign.com/test77/photography/index.php</a> and /test77/photography/includes/nav.php </p>

<p>Why does my index.php say that there's an unexpected "="?</p>

<p>I'd really appreciate the help :)</p>

<p>EDIT: As requested, here's the PHP that's throwing the error</p>

<pre><code>&lt;?php $active[$current] = “class=active”; ?&gt;

&lt;div id="nav"&gt;
&lt;ul&gt;
&lt;li &lt;?php echo $active[1] ?&gt;&gt;&lt;?php if ($current != 1) { echo “&lt;a href="index.php"&gt;Home&lt;/a&gt;”; } else { echo “Home”; } ?&gt;&lt;/li&gt;
&lt;li &lt;?php echo $active[2] ?&gt;&gt;&lt;?php if ($current != 2) { echo “&lt;a href="about.php"&gt;About&lt;/a&gt;”; } else { echo “About”; } ?&gt;&lt;/li&gt;
&lt;li &lt;?php echo $active[3] ?&gt;&gt;&lt;?php if ($current != 3) { echo “&lt;a href="how_it_works.php"&gt;How it works&lt;/a&gt;”; } else { echo “How it works”; } ?&gt;&lt;/li&gt;
</code></pre>

<p>There's more, but that gives you the idea of where it's going. Each page on the website has the identifier to say which menu item it's identifying. The identifier looks like this:</p>

<pre><code>&lt;?php $current = 3; include ('includes/nav.php'); ?&gt;
</code></pre>
