Create menu with foreach loop and array php
<p>for my site i need to create the menu with a array and print it out with a foreach loop.</p>

<p>This is the array i already have:</p>

<pre><code>$aMenu = array(
 'Home' =&gt; 'index.php',
 'Over mij' =&gt; 'overmij.php',
 'Contact' =&gt; 'contact.php'
 ');
</code></pre>

<p>So i need to print this array in a foreach loop this is what i need to print out:</p>

<pre><code>&lt;li&gt;&lt;a href="index.php" title="menuitems" class="current"&gt;Home&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="overmij.php" title="menuitems" &gt;Over mij&lt;/a&gt;&lt;/li
 &lt;li&gt;&lt;a href="contact.php" title="menuitems" &gt;Contact&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>I also have to get the class 'current' on the page i am currently at.</p>

<p>I havent worked yet with a foreach loop, and i cant find it on internet. Thanks for your time.</p>