Remove special characters in php
$string = preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#<>()\[\]\{\}]/i", "", $string);
'Develop > PHP' 카테고리의 다른 글
| [PHP] date 함수 사용시 경고.. (0) | 2012.08.07 |
|---|---|
| [PHP] 괄호 처리 (0) | 2012.07.24 |
| [PHP] Make xml 파일 (0) | 2012.07.17 |
| [PHP] Write ini file (0) | 2012.06.25 |
| [PHP] args 쉽게 처리하는 api (0) | 2012.05.15 |