我从php.net提供参数,以pregmatch
<?php
// The "i" after the pattern delimiter indicates a case-insensitive search
if (preg_match("/php/i", "PHP is the web scripting language of choice.")) {
echo "A match was found.";
} else {
echo "A match was not found.";
}
?>
进行匹配下面的PHP代码,为什么他们用我不明白“/php/i
”不是(“php
”)。请帮助我。谢谢