title: array element wrap all elements
body: <p>I would like to wrap all elements of an array with something like but i don't want a lot of lines or foreach loop</p>
  
  <pre><code>$links = array('london','new york','paris');
  
  // the outcome should be 
  
  &lt;a href="#london"&gt;london&lt;/a&gt;
  &lt;a href="#new york"&gt;new york&lt;/a&gt;
  &lt;a href="#paris"&gt;paris&lt;/a&gt;
  </code></pre>