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.";
}
if (preg_match ("/PHP/", "PHP is the web scripting language of choice.")) {
print "A match was found.";
} else {
print "A match was not found.";
}