function自定义函数99乘法表
2017-05-21 14:11
435 查看
<?php function fun($a=1,$b=9){ $str = ""; for($i=$a;$i<=$b;$i++){ for($j=$a;$j<=$i;$j++){ $str.= $j."*".$i."=".$j*$i." "; } $str.="<br />"; } return $str; } echo fun(); ?>定义一个空字符串,把所有的字符串连接起来,最后输出。
相关文章推荐
- PHP自定义函数99乘法表(正序倒序)
- [菜鸟学php] php版自定义函数实现99乘法表
- OllyDbg完全教程 自定义函数描述[Custom function descriptions]
- 基于自定义函数的Function-Based索引创建
- MySQL 自定义函数CREATE FUNCTION实例
- Oracle 自定义函数Function
- simulink 自定义函数S-function的字符串传递方法
- OllyDbg完全教程 自定义函数描述[Custom function descriptions]
- DB2基于JAVA的自定义函数(user-defined-function)示例
- 基于自定义函数的Function-Based索引创建
- 利用函数制作99乘法表
- Flash8中自定义函数function
- Oracle包体,包含存储过程,自定义函数(function),自定义类型(table),用函数返回自定义类型(相当于返回一张表)
- SQL Function 自定义函数
- SOLR中实现自定义评分函数FunctionQuery
- 对自定义函数建立索引时抛异常--ORA-30553: 函数不能确定(ORA-30553: The function is not deterministic)解决方法
- Oracle Function 自定义函数建立实例
- MySql DETERMINISTIC log_bin_trust_function_creators 自定义函数执行时报错
- simulink调用自定义函数S-Function
- 基于自定义函数的Function-Based索引创建