How do I concatenate a string in PHP?
<p>I want to echo a PHP function with some string literal HTML.</p>

<p>This is how I thought it was done:</p>

<pre><code>echo '&lt;a href="' + $prevpost-&gt;url()  + '" class="postnav left nextpost"&gt;&lt;/a&gt;';
</code></pre>

<p>...but that returns nothing. I've tried small variations on where the quotes are etc. but I'm worried I'm barking up the wrong tree and I can't really find what I need from searching.</p>

<p>Note: <code>echo $prevpost-&gt;url();</code> does return the URL I am trying to link to, before anybody asks if that works.</p>
