php判斷字串A是否含有字串B

神馬和浮雲發表於2013-06-28
<?php
if (preg_match ("/PHP/", "PHP is the web scripting language of choice.")) {
   print "A match was found.";
} else {
   print "A match was not found.";
}
?>

 

相關文章