PHP Get end string on url between / and /
<p>I need to get the last string content of the url between / and /</p>

<p>For example:</p>

<pre><code>http://mydomain.com/get_this/

or

http://mydomain.com/lists/get_this/
</code></pre>

<p>I need to get where get_this is in the url.</p>
