나는 다음과 같은 오류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
을 검색의 가치 얻고있다 "태평양 표준시를 복구"
$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