PHP number format()

Jmnote (토론 | 기여)님의 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 }}