
php怎样判断一个字符串是否包含另一个字符串strpos
1个回答
展开全部
// strstr();
$str = 'hello world!';
$final = strstr($str, 'hello') ? '存在' : '不存在';
echo $final;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
// strstr();
$str = 'hello world!';
$final = strstr($str, 'hello') ? '存在' : '不存在';
echo $final;
类别
我们会通过消息、邮箱等方式尽快将举报结果通知您。
说明
0/200