摘要: 我们需要将价格保留两位小数比如12元需要表示为¥12.00,这时就需要使用number_format函数,使用方法为number_format(12,2),如果需要四舍五入,可以使用round函数配合。 number_format 格式化数字字串。 语法: string number_format( 阅读全文
posted @ 2016-08-20 00:40 智昕 阅读(72214) 评论(0) 推荐(13) 编辑