How to determine if a url is an image or not?
<p>i want to know from the syntax if a url is a picture or not.
example: <a href="http://www.blah.com/plo52.jpg" rel="nofollow">http://www.blah.com/plo52.jpg</a> or png or gif will return true.
if the url is ending with other extension, the function will return false.</p>

<p>Thanks</p>
