미채택 완료

eregi를 preg_match로 ...

2014-02-17 (월) 14:57:54 7,088
php 5.3에서  eregi함수가 먹히지 않아 팝업창 스킨 설치가 안되서요..

if(eregi($g4[site_popup_table],$row[0]) ) 

preg_match 함수로 어떻게 바꾸나요?
|

답변 1개

Copy
if(preg_match('/'.$g4[site_popup_table].'/i',$row[0]) )
 
로 바꿔보시기 바랍니다.
 

답변을 작성하려면 로그인이 필요합니다.