title: HTML to PHP navigation bar
body: <p>I got this navigation bar and i dont know how to convert it from HTML to PHP. Can somone help me?</p>
  
  <p>The HTML is</p>
  
  <pre><code>&lt;nav&gt;
  &lt;div id="menubar"&gt;
      &lt;ul id="nav"&gt;
          &lt;li  class="current"&gt;&lt;a href="index.php?pg=1"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="rpg.php?pg=2"&gt;RPG&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="sports.php?pg=3"&gt;Sports&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="strategy.php?pg=4"&gt;Strategy&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="android_ios.php?pg=5"&gt;Android/IOS&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="nice_to_try.php?pg=6"&gt;Nice to try&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>I'm just beginner in PHP and im trying to learn the code, i searched it up on google but i couldnt figure out how to apply it to my code.
  Thank you in advance!</p>