-3
你好我試圖使這個的preg_match不區分大小寫的preg_match不區分大小寫
$mot=/"#".$_POST['nom']."#";
if (preg_match($mot,$line)){ $existe=true;break 1;}
我知道我必須添加/ I,但它不工作!
你好我試圖使這個的preg_match不區分大小寫的preg_match不區分大小寫
$mot=/"#".$_POST['nom']."#";
if (preg_match($mot,$line)){ $existe=true;break 1;}
我知道我必須添加/ I,但它不工作!
搜索後添加i
$mot="#".$_POST['nom']."#i";
if (preg_match($mot,$line)){ $existe=true;break 1;}
刪除前面的內容/或與上面的內容匹配 –
還是這個http://stackoverflow.com/questions/10148297/php-preg-match-how-to-match-a-string-upper-lower-case -with-anything-before-o – smiggle