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

16번째 줄: 16번째 줄:
*[[PHP prinf()]]
*[[PHP prinf()]]
*[[PHP sscanf()]]
*[[PHP sscanf()]]
*[[PHP round()]]
*[[함수 round()]]
*[[함수 round()]]



2015년 9월 27일 (일) 13:15 판

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

2 같이 보기

3 참고 자료

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