新手笔记,使用将匿名函数赋值给变量的方式使用匿名函数

来源:互联网 发布:ubuntu vbox 编辑:程序博客网 时间:2024/06/05 03:19
<?php//require 'index.html';//require 与 include 的区别在于前者出错,不再运行程序$exmp=function ($str){  //使用将匿名函数赋值给变量的方式调用匿名函数echo $str;};  //匿名函数赋值给变量需加结束符号“;”$exmp('nihao<br/>');$str='wolaile';$exmp($str);?>

0 0
原创粉丝点击