如果图片是空的或是不存在则用指定的替换if ($img=='' || !file_exists($img) ){ $img="/sc/touxiang.png"; } 本文地址:https://www.xunjs.com/php/view_10331.html 版权声明:除特别声明外,本站所有文章皆是本站原创,转载请以超链接形式注明出处! Tags: 文件 判断