Remove unnecessary slashes from path
<pre><code>$path = '/home/to//my///site';
</code></pre>

<p>i am trying to remove unnecessary slashes from the path above </p>

<p>i am trying to get this results </p>

<pre><code>/home/to/my/site
</code></pre>

<p>i've failed with <code>str_replace</code>, since i don't know the number of slashes</p>
