반응형
숫자포멧 금액단위(number_format)
number_format은 숫자를 천단위로 출력하는 함수입니다.
형식 : number_format(숫자)
ex)
1) 소스
<?php
$number="100000000";
echo number_format($number);
?>
2) 출력결과
반응형
'웹개발 > php' 카테고리의 다른 글
[php]session (0) | 2013.12.16 |
---|---|
[php]한글체크(preg_match) (0) | 2013.12.11 |
[php]대소문자 변환(strtolower,strtoupper) (0) | 2013.12.09 |
[php]문자열 자르기(explode) (0) | 2013.12.02 |
[php]php 배열비교(in_array) (0) | 2013.12.02 |