title: How to create PHP function to render menu?
body: <p>I do render menu in HTML like that</p>
  
  <pre><code>&lt;div id="mybuttonscontainer"&gt;
  
  
      &lt;ul&gt;        
  
  
  &lt;li&gt;&lt;a href="&lt;?php echo get_link('option1'); ?&gt;"&gt; Option 1&lt;/a&gt;&lt;/li&gt;         
  
  
  &lt;li&gt;&lt;a href="&lt;?php echo get_link('option2'); ?&gt;"&gt;Option 2&lt;/a&gt;&lt;/li&gt;
  
      &lt;/ul&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Now I want to put that code into function</p>
  
  <pre><code>render_menu('current_option');
  </code></pre>
  
  <p>Do I have to put the whole string into one <strong>echo</strong> statement?</p>