php 判断是否为PNG格式的图片
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免费学习视频:立即使用
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!










