php 특수문자 제거 - 정규표현식
페이지 정보
본문
$string = preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $string);
preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $string);
preg_replace('/[^A-Za-zㄱ-힣0-9-]/', '', $str);
preg_replace("/[/&%#$]/", "", $str);
댓글목록
등록된 댓글이 없습니다.