$name = "001x.gif";
$pan = "x";
$con = explode($pan,$name);
if (count($con )>1):
echo $name." contains ".$pan;
else:
echo $name." does not contain ".$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." contains ".$pan; else: echo$name." does not contain ".$pan; endif; ?...