title: How to cut off the filename of this url using PHP?
body: <p>How can I transform the following link ( and many other that have the same structure) from</p>
  
  <pre><code>http://www.domain.com/gb/news/12/13311/here-goes-the-name-of-article.htm
  </code></pre>
  
  <p>and echo it to</p>
  
  <pre><code>http://www.domain.com/gb/news/12/13311/
  </code></pre>
  
  <p>I will use PHP and $_GET to get the url.</p>