Get Smarty

Donate

Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

演算子

演算子は、変数の値に直接適用されます。

Example 3.7. 演算子の例


{$foo+1}

{$foo*$bar}

{* もう少し複雑な例 *}

{$foo->bar-$bar[1]*$baz->foo->bar()-3*7}

{if ($foo+$bar.test%$baz*134232+10+$b+10)}

{$foo|truncate:"`$fooTruncCount/$barTruncFactor-1`"}

{assign var="foo" value="`$foo+$bar`"}

  

複雑な数式については {math} 関数、そして {eval} も参照してください。

Comments
No comments for this page.

Advertisement

Sponsors [info]

Sponsors