Home > Backend Development > PHP Tutorial > How to use custom functions in Thinkphp templates_PHP tutorial

How to use custom functions in Thinkphp templates_PHP tutorial

WBOY
Release: 2016-07-13 10:32:56
Original
969 people have browsed it

1.number_format

{$number|number_format=2} Thousandths, two decimal places

2.round

{$number|round=2} Round to two decimal places

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/753002.htmlTechArticle1.number_format { $number | number_format = 2 } Thousandth place, retaining two decimal places 2.round { $ number |round = 2 } Round to two decimal places...
Related labels:
source:php.cn
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template