How can php read this parameter
<p>If I have a stored input string that looks like this </p>

<pre><code>http://site.com/param1/value1
</code></pre>

<p>how can php extract <code>value1</code>?</p>

<hr>

<p>I know how to extract parameters that look like this </p>

<pre><code>http://site.com?param1=value1
</code></pre>

<p>but it doesn't work for the format I'm asking about.</p>
