例如,如果我的句子是$sent = 'how are you';,如果我搜索$key = 'ho'使用strstr($sent, $key)它将返回,true因为我的句子ho在其中.
$sent = 'how are you';
$key = 'ho'
strstr($sent, $key)
true
ho
我正在寻找的是一种方法,如果我只搜索你是怎么回事,你或者是你.我怎样才能做到这一点?
php search strstr
php ×1
search ×1
strstr ×1