Home >Backend Development >PHP Tutorial >smarty的模板中能写优先级吗?

smarty的模板中能写优先级吗?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 14:05:11758browse

举例{wf:($i-1)/2 eq 0}
我想在模板中先进行加法再进行除法,但是模板不支持(),应该怎么写啊?


回复讨论(解决方案)

{math equation="(( x + y ) / z )" x=2 y=10 z=2}

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