Home > php教程 > php手册 > Thinkphp 模板中使用自定义函数的方法

Thinkphp 模板中使用自定义函数的方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 09:38:04
Original
1047 people have browsed it

1.number_format 

{$number|number_format=2}   千分位,保留两位小数

2.round  

{$number|round=2}   四舍五入保留两位小数

 

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template