title: Get slug from current url
body: <p>I have URLs like so:</p>
  
  <pre><code>http://localhost/hi-every-body/
  http://s1.localhost/hello-world/
  http://s2.localhost/bye-world/
  </code></pre>
  
  <p>I want the page "slug" from the URLS, eg.</p>
  
  <pre><code>hi-every-body
  hello-world
  bye-world
  </code></pre>
  
  <p>What's a simple way of doing this in PHP? </p>