replyPHP manual, definition of anonymous function,
The first sentence, "Anonymous functions, also known as closures, (Anonymous functions, also known as closures.)"
Manual address: http://php.net/manual/en/functions.anonymous.php
I know that the definition of closure in js is "a function that has access to variables in the scope of another function", but in php, closure seems to be the same thing as anonymous function.
replyTheoretically, closure and anonymity are different concepts, but PHP seems to combine them. Anonymity is closure, and closure is anonymity. You can read this article http://www.php.cn/php-weizijiaocheng-401974.html
This is an anonymous function, not a closure