Smarty - Manual手册 - Chapter 3. Basic Syntax第3章 基础语法 - Math数学运算
2007-12-24 16:17
447 查看
Smarty - Manual手册 - Chapter 3. Basic Syntax第3章 基础语法 - Math数学运算
Math
数学运算
Math can be applied directly to variable values.变量值可以使用使用数学运算。
Example 3-7. math examples 例 307. 数学运算示例
|
复杂方程式请参考{math}函数以及{eval}函数。
[Smarty - Manual手册 - Chapter 3. Basic Syntax第3章 基础语法 - Math数学运算 - 文档]
http://smarty.php.net/manual/en/language.math.php[Smarty - 官方网站]
http://smarty.php.net/[Smarty - 下载地址]
当前版本 2.6.18, http://smarty.php.net/do_download.php?download_file=Smarty-2.6.18.tar.gz全部列表, http://smarty.php.net/download.php
[Smarty - 相关论坛]
http://php.board.newsmth.net/http://forum.csdn.net/SList/PHP/
http://www.phpinsider.com/smarty-forum/
http://news.php.net/php.smarty.general
http://news.php.net/php.smarty.dev
http://news.php.net/php.smarty.cvs
[Smarty - 关键词]
smarty[Smarty - Manual手册]
借助cycle实现循环输出值, http://smarty.php.net/manual/en/language.function.cycle.phpSmarty的cat函数, http://smarty.php.net/manual/en/language.modifier.cat.php
Smarty的upper函数, http://smarty.php.net/manual/en/language.modifier.upper.php
[Smarty - Manual手册 - Chapter 3. Basic Syntax第3章 基础语法]
Comments注释, http://smarty.php.net/manual/en/language.basic.syntax.php#language.syntax.comments Math数学运算, http://smarty.php.net/manual/en/language.math.php[Smarty - Manual手册 - Chapter 5. Variable Modifiers第5章 变量修饰符]
cat将值连接到给定变量之后, http://smarty.php.net/manual/en/language.modifier.cat.phpupper将字符串转换成大写字母, http://smarty.php.net/manual/en/language.modifier.upper.php
escape转义修饰符, http://smarty.php.net/manual/en/language.modifier.escape.php
[Smarty - Manual手册 - Chapter 7. Built-in Functions内建函数]
{foreach},{foreachelse}, http://smarty.php.net/manual/en/language.function.foreach.php{strip}在显示之前删除每行前后多余的空格和回车字符, http://smarty.php.net/manual/en/language.function.strip.php
[Smarty - Manual手册 - Chapter 8. Custom Functions第8章 自定义函数]
{assign}用于在模板执行过程中设置模板变量, http://smarty.php.net/manual/en/language.custom.functions.php#language.function.assign{counter}计数器, http://smarty.php.net/manual/en/language.custom.functions.php
[Smarty - Manual手册 - 第13章 Smarty类方法]
register_function()动态注册模板函数插件, http://smarty.php.net/manual/en/api.register.function.phpassign_by_ref()按引用赋值, http://smarty.php.net/manual/en/api.assign.by.ref.php
相关文章推荐
- PHP - Smarty模板引擎 - 翻译 - Manual手册 - Chapter 3. Basic Syntax第3章 基础语法 - Comments注释
- Smarty - Manual手册 - Chapter 5. Variable Modifiers第5章 变量修饰符 - upper将字符串转换成大写字母
- Smarty - Manual手册 - Chapter 5. Variable Modifiers第5章 变量修饰符 - cat将值连接到给定变量之后
- Smarty - Manual手册 - Chapter 8. Custom Functions第8章 自定义函数 - {counter}计数器
- Smarty - Manual手册 - Chapter 5. Variable Modifiers第5章 变量修饰符 - escape转义修饰符
- Smarty - Manual手册 - Chapter 13. Smarty Class Methods第13章 Smarty类方法 - assign_by_ref()按引用赋值
- Smarty - Manual手册 - Chapter 7. Built-in Functions第7章 内建函数 - {foreach},
- Smarty - Manual手册 - Chapter 7. Built-in Functions内建函数 - {strip}在显示之前删除每行前后多余的空格和回车字符
- PHP - Smarty模板引擎 - Manual手册 - Chapter 12. Smarty Class Variables第十二章Smarty类变量 - $plugins_dir插件文件夹
- Smarty - Manual手册 - Chapter 5. Variable Modifiers第5章 变量修饰符 - escape转义修饰符
- 【webstorm使用手册】如何让webstorm支持nextcss基础语法?
- 第3章 Excel VBA基础语法 【下】
- Chapter 4. MATLAB语法基础
- Think in Java 笔记_Chapter20_1_Annocation基础语法
- HTML —— HTML教程|HTML手册|HTML基础|HTML语法
- PHP - Smarty模板引擎 - Manual手册 - Chapter 7. Built-in Functions第7章 内建函数 - {config_load}用于从一个配置文件加载配置变量到模板中
- Chapter 3、Java语法基础(三)--- 运算符、数据类型转换 (22nd,Feb)
- 第3章 Excel VBA基础语法 【上】
- Lua基础语法学习(二)+Lua5.3参考手册
- MySQL 5.7 Reference Manual Chapter 4 Tutorial 参考手册第四章教程内容总结