<?php
$name = "001x.gif";
$pan = "x";
$con = explode($pan,$name);
if (count($con)>1):
echo $name."中包含".$pan;
else:
echo $name."中没有包含".$pan;
endif;
?>
时间: 2024-10-02 16:58:41
<?php
$name = "001x.gif";
$pan = "x";
$con = explode($pan,$name);
if (count($con)>1):
echo $name."中包含".$pan;
else:
echo $name."中没有包含".$pan;
endif;
?>