Remove root directory from a directory path string - PHP
<p>I have a variable like <code>$path = "dir1/dir2/dir1/dir4/";</code> etc.. etc..</p>

<p>I want to remove the first member <code>dir1/</code> and want result like <code>dir2/dir1/dir4/</code>.</p>

<p>I think it is possible by making the variable an array by <code>explode('/', $path)</code>. How can I remove the first member vrom array and reconstruct that array into a text variable??</p>

<p>How can I achieve this in PHP?</p>
