2016年6月28日

什么是PHP闭包???

摘要: 闭包函数:临时创建一个没有名称的函数,经常作为回调函数来用。 通俗的说就是:子函数可以使用父函数中的局部变量,这种行为叫做闭包。 1、匿名函数赋值 $demo=function($str){ echo $str; } $demo('hello,world'); 2、闭包可以从父作用域中继承变量,任何 阅读全文

posted @ 2016-06-28 16:05 Mr.风的影子 阅读(612) 评论(0) 推荐(0)

微信开发模板--easywechat

摘要: 链接地址:https://easywechat.org/zh-cn/docs/installation.html 阅读全文

posted @ 2016-06-28 11:49 Mr.风的影子 阅读(555) 评论(0) 推荐(0)

导航