标签:ret out 临时 阶段 控制器 hello echo strong err
路由文件定义在routes/web.php中
1 Route::get(‘hello‘, function () { 2 return ‘Hello, Welcome to LaravelAcademy.org‘; 3 });
1 $closure = function($name){ 2 return sprintf("Hello %s", $name); 3 } 4 echo $closure("jerry"); 5 // 检测$closure变量是否是一个闭包 6 var_dump($closure instanceof Closure);
标签:ret out 临时 阶段 控制器 hello echo strong err
原文地址:https://www.cnblogs.com/sangyuming/p/10201861.html