-1
가능한 중복 :
Converting ereg expressions to pregeregi를 preg_match로 대체하는 방법은 무엇입니까?
내가는 preg_match이 줄을 변경하고자하지만,이 일을하지 않습니다.
if ($file != "." && $file != ".." && !eregi(".jpg".$thumbext."$",$file) && eregi(".jpg$",$file)){
내가 시도 :
if ($file != "." && $file != ".." && !preg_match(".jpg".$thumbext."$",$file) && preg_match(".jpg$",$file)){
은 어떻게해야 하는가?
감사합니다.
당신은 그것을 완벽하게 작동합니다'$ thumbtext' – Paulpro