댓글 검색 목록

[php] 특수문자 제거하기

페이지 정보

작성자 운영자 작성일 15-05-18 21:50 조회 2,133 댓글 0

<?php

$string = "This is some text and numbers 12345 and symbols !£$%^&";

$new_string = ereg_replace("[^A-Za-z0-9]", "", $string);

echo $new_string

?> 

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.