私は次のエラーPHP、preg_match_allエラーが不明な修飾語ですか?
[13-Sep-2011 07:26:28] PHP Warning: preg_match_all() [<a
href='function.preg-match-all'>function.preg-match-all</a>]: Unknown
modifier 'w' in D:\domains\wwwroot\php\search.php on line 274
を検索の値がされて取得しています「PSTを修復する」
$text1 = $result['ProgramName'] . " " . $result['ProgramVersion'];
$keywords1 = explode(" ",stripslashes($search));
foreach ($keywords1 as $k){
preg_match_all("/$k/i",$text1,$matches);
foreach ($matches[0] as $m){
$text1 = preg_replace("/$m/", '<span class="highlight">'.$m.'</span>', $text1);
}
}
私は問題が何であるかを実際にはかなり困惑していますか?
あり、そして(にpreg_replaceで)再び一致するすべてのその仕事をやって? – salathe