title: Dynamic Navigation menu using php include
body: <p>I am creating a website using HTML/bootstrap and to reduce the repetition of same code I tried using PHP include for footer and sidebar, like this:</p>
  
  <pre><code> &lt;html&gt;
    &lt;body&gt;
  
      &lt;?php include('navigation.php'); ?&gt;
  
      Contents of this page here...
  
     &lt;?php include('sidebar.php'); ?&gt;
     &lt;?php include('footer.php'); ?&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I wanted to do the same thing for navigation menu also, But as the highlighted links changes with each page I am not sure how to change that dynamically.
  Since I am using bootstrap just need some method by which I can manipulate the <strong>class="active"</strong> in the menu links.
  (NB: new to php.)</p>