title: PHP-CSS-HTML applying a class to a tag through php with templates
body: <p>As you will guess i'm new to php. Thanks for your help.
  I have this piece of code in a header tpl:</p>
  
  <pre><code>&lt;div class="menu"&gt;
              &lt;ul&gt;                                                                         
                  &lt;li class="selected"&gt;&lt;a href="#"&gt;home&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;carta&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;delicias artesanas&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;contacto&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;d&amp;oacute;nde estamos&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>which I'd like to call with PHP function include.
  The thing is, I want to call this tpl, indicating which one of the li's will have the "selected" class applied, how can I do that?
  As I told you, easy peasy for anyone with basic PHP experience.
  THANK YOU.</p>