Parse_url and remove slash only on first folder only?
<p>PHP dummy here. <br/><br/>Let's say that I have my domain like this:<code>http://www.domain.com/somefolder/index.html</code> so now i need to make it like <b>this</b> :<code>somefolder/index.html</code></p>

<p>In order to do so I am using following code:</p>

<pre><code>&lt;?php $urlparts = parse_url("http://www.domain.com/somefolder/index.html");
$extracted = $urlparts['path'];
print $extracted;?&gt;
</code></pre>

<p>Now I am getting output like this: <code>/somefolder/index.html</code> <br/><br/>what I like to to do is to <b>remove first slash only</b> so that it looks like this:
 <b><code>somefolder/index.html</code></b>, it would be also nice that if I can get the same result (removed slash on first folder but not the other's) even if I have more folders like this: <b><code>other_folder/somefolder/index.html</code></b> or <b><code>other_folder/yet_another_folder/somefolder/index.html</code></b>. </p>

<p>Is there a nice person who can help a dummy like me? THX!     </p>
