php removing excess whitespace
<p>I'm trying to remove excess whitespaces from a string like this:</p>

<pre><code>hello &lt;many whitespaces here&gt; world
</code></pre>

<p>to</p>

<pre><code>hello world
</code></pre>

<p>Anyone has any idea how to do that in php?</p>

<p>Thanks!</p>
