Closure
Also written: closures, anonymous function
A function written in place and passed around, such as the code in Route::get('/hello', function () {...}). It can't see outside variables unless you list them with use (...).
Also written: closures, anonymous function
A function written in place and passed around, such as the code in Route::get('/hello', function () {...}). It can't see outside variables unless you list them with use (...).