function imgext($str) {
$img= strrpos($str,".");
if (!$mg) { return ""; }
$img1 = strlen($str) - $i;
$ext = substr($str,$img+1,$img1);
return $ext;
}
Sunday, May 13, 2012
php function to return the image extension
0
Following function will return the image extension