Adding + between keywords PHP
<p>In my tag cloud I have urls that look like this</p>

<ul>
<li><code>../search.php?query=cat&amp;select=all</code></li>
<li><code>../search.php?query=the cat&amp;select=all</code></li>
</ul>

<p>What I am trying to do is if the keyword is more than one word like so:</p>

<ul>
<li><code>../search.php?query=the cat&amp;select=all</code></li>
</ul>

<p>Put a <code>+</code> between the words like this</p>

<ul>
<li><code>../search.php?query=the+cat&amp;select=all</code></li>
</ul>

<p>My default search function uses the <code>+</code> in the searches performed by the form but I would also like my tag cloud to have the same thing. I am only doing this for looks. It works perfectly fine as is but I thought I would ask anyway. Can anyone help? this is what I am currently using for links in my tag cloud</p>

<pre><code>echo " &lt;a href='../search.php?query=$word&amp;amp;select=all' target='rel' title='".($word)."'&gt;".($word)."&lt;/a&gt;";
</code></pre>

<p>Thanks.</p>
