PHP 7.4中的新功能

array_map { return $user->id; }, $users)array_map => $user->id, $users)关于短闭包的一些注意事项:可以访问父作用域,不需要 use 关键字。

网站地图