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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 10:32:561005browse

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...
Statement:
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