php get image extension from url
snippet in php

php get image extension from url

user2823

$path ="/some/path/to/myfilename.html"; 
$ext = pathinfo($path, PATHINFO_EXTENSION);//ext is "html"