更新时间:2023-09-08 15:21:16
此处,闭包函数在where参数中传递.要继承变量,您必须使用use
关键字
Here, closure function passed in where argument. To inherit variables you have to use use
keyword
例如function($q) use($var1, $var2, $var3){...
要了解有关闭包功能的更多信息,请查看php手册.
To learn more about closure function please check php manual.