php의 number_format 함수 - 숫자를 천단위로 구분
페이지 정보
작성자 YJNet 작성일13-04-25 00:13 조회7,253회 댓글0건본문
$test = 1234567;
$res = number_format($test);
echo $res;
결과: 1,234,567
<소수점 표시 -2자리>
$res = number_format($test,2);
결과: 1,234,567.00
$res = number_format($test);
echo $res;
결과: 1,234,567
<소수점 표시 -2자리>
$res = number_format($test,2);
결과: 1,234,567.00
댓글목록
등록된 댓글이 없습니다.