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

How to use custom functions in Thinkphp templates_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:32:56956browse

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