Get a filename from a string in PHP
<p>I have this strings  saved in my mysql database in format like:</p>

<pre><code>/uploads/attachments/18/105/WordPress_3_Cookbook.pdf
</code></pre>

<p>Now, I need to get only the file name.</p>

<p>I guess I need some function in PHP that check the string from the backwards and get everything to the first slash.</p>

<p>How to write such thing? </p>
