- 博客(3)
- 收藏
- 关注
原创 新手笔记,使用将匿名函数赋值给变量的方式使用匿名函数
<?php //require 'index.html'; //require 与 include 的区别在于前者出错,不再运行程序 $exmp=function ($str){ //使用将匿名函数赋值给变量的方式调用匿名函数 echo $str; }; //匿名函数赋值给变量需加结束符号“;” $exmp('nihao'); $str='wolaile'; $exmp($str); ?>
2014-03-23 00:57:58 948
原创 新手笔记,小程序一
<?php require 'index.html'; //require 与 include 的区别在于前者出错,不再运行程序 function test($x,$y){ if($x<$y){ return 1; //return 返回函数值之后,终止函数脚本运行,不再运行余下语句 } return -1; } if(isset($_POST['c']) && isset($_
2014-03-23 00:27:51 156
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人