콤마제거 > PHP

본문 바로가기

사이트 내 전체검색

뒤로가기 PHP

콤마제거

페이지 정보

작성자 관리자 작성일 20-09-18 09:50 조회 6,985 댓글 0

본문

$price = filter_var($input_price, FILTER_SANITIZE_NUMBER_INT);

 or

 $price = intval(preg_replace('/[^\d.]/', '', $input_price));

댓글목록 0

등록된 댓글이 없습니다.

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