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

본문 바로가기
사이트 내 전체검색

PHP

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

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 6,993회 작성일 20-09-18 09:46

본문

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


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


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


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

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

Copyright © neion.co.kr All rights reserved.