匿名函数<?php$variable=function($parameter){echo$parameter;};//这里必须跟分号$variable('你好');普通函数functiondemo($name){echo$name;}demo('明天');为什么通过变量名调用匿名函数时,右花括号后面必须接分号呢?否则会报错?Parseerror:syntaxerror,unexpected'$variable'(T_VARIABLE###问题描述
添加回答
举报
0/150
提交
取消