"PHP number format()"의 두 판 사이의 차이

21번째 줄: 21번째 줄:
* [[함수 round()]]
* [[함수 round()]]
* [[함수 toFixed()]]
* [[함수 toFixed()]]
* [[함수 thousand_format()]]


==참고==
==참고==

2017년 7월 9일 (일) 09:54 판

1 개요

number_format()
$num = 1234.5678;
echo number_format($num);
echo number_format($num,2);
echo number_format($num,6);
# 1,235
# 1,234.57
# 1,234.567800

echo number_format(1, 2); // 1.00

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}