在php中是否有任何函数可以准确匹配单词,如果找到它,则返回true。 [英] Is there any function in php that will match a word exactly and if it finds it, it returns true.
本文介绍了在php中是否有任何函数可以准确匹配单词,如果找到它,则返回true。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
php中是否有任何与单词完全匹配的函数,如果它b / b
找到它,则返回true。
例如,如果我搜索CA
strVar =" Bob来自洛杉矶CA" - 返回真实
strVarBob来自加拿大 - 返回false
任何帮助表示赞赏
谢谢
-Ross >
推荐答案
在我们的上一集中,
< 11 ************ **********@c30g2000hsa.googlegroups .com> ;,
可爱而有才华的 ro ********* @ gmail.com
在comp.lang.php上广播:
In our last episode,
<11**********************@c30g2000hsa.googlegroups .com>,
the lovely and talented ro*********@gmail.com
broadcast on comp.lang.php:
Hi,
php中是否有任何与单词完全匹配的函数,如果它是
找到它,它返回true。
Is there any function in php that will match a word exactly and if it
finds it, it returns true.
是的。
-
Lars Eighner< http://larseighner.com/< http://myspace.com/larseighner>
倒计时:436天。
债券被取消后你会怎么做?
Yes.
--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 436 days to go.
What do you do when you''re debranded?
< comp.lang.php>
<>
<星期六,2007年11月10日13:09:14 - 0800>
< 11 ********************** @ c30g2000hsa.googlegroups .com>
<comp.lang.php>
<>
<Sat, 10 Nov 2007 13:09:14 -0800>
<11**********************@c30g2000hsa.googlegroups .com>
php中是否有任何与单词完全匹配的函数,如果它是
找到它,则返回true。
例如,如果我搜索CA
strVar =" Bob来自洛杉矶CA" - 返回真实
strVarBob来自加拿大 - 返回false
Is there any function in php that will match a word exactly and if it
finds it, it returns true.
For example if I search for "CA"
strVar = "Bob is from Los Angeles CA" - return true
strVar "Bob is from Canada" -- returns false
demo =" Bob来自加利福尼亚州洛杉矶> ;;
demo="Bob is from Los Angeles CA";
>
这篇关于在php中是否有任何函数可以准确匹配单词,如果找到它,则返回true。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文