Better Way To Append To A String
<p>When I use a <code>foreach</code> to add content to a string i always use <code>$x .= 'content'</code> but first I have the declare that variable <code>$x = ''</code> which seems like an extra line of code that isn't needed. Is there a better way to do this?</p>

<p>Here's a good example:</p>

<pre><code>$options = array('Link 1', 'Link 2', 'Link 3')
$output = '';
foreach($options as $value) $output .= '&lt;a href="#"&gt;' . $value . '&lt;/a&gt;';
echo $output;
</code></pre>
