title: Get part of URL with PHP
body: <p>I have a site and I would need to get one pages URL with PHP. The URL might be something <code>www.mydomain.com/thestringineed/</code> or it can <code>www.mydomain.com/thestringineed?data=1</code> or it can be <code>www.mydomain.com/ss/thestringineed</code></p>
  
  <p>So it's always the last string but I dont want to get anything after ?</p>