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

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
9번째 줄: 9번째 줄:
# 1,234.57
# 1,234.57
# 1,234.567800
# 1,234.567800
echo number_format(1, 2); // 1.00
</source>
</source>



2017년 7월 4일 (화) 22:23 판

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 }}