<?php
//require 'index.html'; //require 与 include 的区别在于前者出错,不再运行程序
$exmp=function ($str){ //使用将匿名函数赋值给变量的方式调用匿名函数
echo $str;
}; //匿名函数赋值给变量需加结束符号“;”
$exmp('nihao<br/>');
$str='wolaile';
$exmp($str);
?>
新手笔记,使用将匿名函数赋值给变量的方式使用匿名函数
最新推荐文章于 2022-06-14 20:20:58 发布