php判断

<?php
$str = '我是张三?';
preg_match("/张三/", $str, $match);
if($match) {
echo ' 张三在文本中';
}
?>

猜你喜欢

转载自www.cnblogs.com/jizl/p/9503497.html