php判断字符串A是否含有字符串B

php判断字符串A是否含有字符串B

if (preg_match ("/PHP/", "PHP is the web scripting language of choice.")) {
   print "A match was found.";
} else {
   print "A match was not found.";
}
posted @ 2022-09-15 13:40  Rukh  阅读(29)  评论(0编辑  收藏  举报