<?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.";
}
?>
<?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.";
}
?>
转载于:https://www.cnblogs.com/xcxc/p/3160233.html