匿名函数$variable=function($parameter){echo$parameter;};//这里必须跟分号$variable('你好');普通函数functiondemo($name){echo$name;}demo('明天');为什么通过变量名调用匿名函数时,右花括号后面必须接分号呢?否则会报错?Parseerror:syntaxerror,unexpected'$variable'(T_VARIABLE###问题描述
交互式爱情
湖上湖
白猪掌柜的
随时随地看视频慕课网APP
相关分类