function isPng($pngPath)
{
$size = getimagesize ($pngPath);
$file_extension = strtolower(substr(strrchr($pngPath,'.'),1));
if('image/png' != $size['mime'] || $file_extension != 'png')
{
return FALSE;
}
else {
return TRUE;
}
}
详细解决方案
php 判断是不是为PNG格式的图片
热度:227 发布时间:2012-12-19 14:13:14.0
相关解决方案