$name = "001x.gif"; $pan = "x"; $con = explode($pan,$name); if (count($con)>1): echo $name."中包含".$pan; else: echo $name."中没有包含".$pan; endif; ?>