title: Get parts of URL in PHP
body: <p>I am just wondering what the best way of extracting "parameters" from an URL would be, using PHP.</p>
  
  <p>If I got the URL:</p>
  
  <pre><code>http://example.com/user/100
  </code></pre>
  
  <p>How can I get the user id (100) using PHP?</p>