Get part of URL
<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://domain.com/user/100
</code></pre>

<p>How can I get the user id (100) using PHP?</p>
