PHP number_format

<?php
$str = 123465789;
echo number_format($str).'<br>';//output 123,465,789
echo number_format($str, 2);//output 123,465,789.00
?>

 

posted @ 2010-08-12 11:22  Felix Smith  阅读(69)  评论(0编辑  收藏  举报