strip/trim URL path/string to leave just the end file name string after specified character using php
<p>This is a really easy question, but I can't figure out what I should be using exactly.</p>

<p>My <code>$image['url']</code> is <strong>http://hello.com/uploads/2012/name.jpg</strong></p>

<p>So I want to just be left with this... <strong>name.jpg</strong></p>

<p>I tried lots but I think explode is the one I should use but I just get <code>array</code> outputted from this.</p>

<pre><code>$filename = explode('/', $image['url']);

echo $filename;
</code></pre>

<p>Can anyone please point me in the right direction on the php manual.</p>

<p>Thank you.</p>
