$name = "001x.gif";
$pan = "x";
$con = explode($pan,$name);
if (count($con)>1):
echo $name."中包含".$pan;
else:
echo $name."中没有包含".$pan;
endif;
?>
http://www.bkjia.com/PHPjc/318093.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/318093.htmlTechArticle?php $name="001x.gif"; $pan="x"; $con=explode($pan,$name); if(count($con)1): echo$name."中包含".$pan; else: echo$name."中没有包含".$pan; endif; ?...