get filename out of string
<p>I do have the following strings of files.</p>

<pre><code>/img/studio/record.JPG
/img/studio/view.JPG
/img/studio/doors.JPG
img/team/andy.jpg
img/team/jim.jpg
</code></pre>

<p>Now I would like to get only the filename to look in a db.</p>

<p>like: record.JPG</p>

<p>What the best way to get it?
(I need a php solution.)</p>

<p>Thanks for any help in advance.</p>
