특수문자 제거 - 정규표현식 > PHP

본문 바로가기

사이트 내 전체검색

뒤로가기 PHP

php 특수문자 제거 - 정규표현식

페이지 정보

작성자 관리자 작성일 20-09-18 09:46 조회 7,276 댓글 0

본문

$string = preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $string);


preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $string);


preg_replace('/[^A-Za-zㄱ-힣0-9-]/', '', $str);


preg_replace("/[/&%#$]/", "", $str);

댓글목록 0

등록된 댓글이 없습니다.

Copyright © neion.co.kr All rights reserved.
PC 버전으로 보기