Mitul Dabhi
answered Nov 30 '-1 00:00
following function will return true if it image file which should be one of the extension from xcf,odg,gif,jpg,png,bmp
function CheckisImage( $fileName )
{
$imageTypes = 'xcf|odg|gif|jpg|png|bmp';
return preg_match("/$imageTypes/i",$fileName);
}