Get part of url in php
<p>I want to get a part of this url using php, what will be best approach</p>

<p>example url:</p>

<pre><code>http://www.domain.com/44-Paris/blogs-for-travel/tour1.html
</code></pre>

<p>How do I get url like one below using php?</p>

<p><strong>http://www.domain.com/44-Paris/</strong></p>
