title: How to get parameter after "/" in URL in PHP
body: <p>I need to let my users type anything at the end of my url, like this:</p>
  
  <p><a href="http://mysite.com/?somethingorother" rel="nofollow">http://mysite.com/?somethingorother</a></p>
  
  <p>or</p>
  
  <p><a href="http://mysite.com/somethingorother" rel="nofollow">http://mysite.com/somethingorother</a></p>
  
  <p>And then I would like to get that last bit that they added to the end of the url like so:</p>
  
  <pre><code>$var = $_POST[''];
  </code></pre>
  
  <p>But I'm not sure how to go about this, and I can't find anything, because I'm not quite sure how to search for it.</p>
  
  <p>Any help is appreciated, thanks!</p>