我從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
」)。請幫助我。謝謝