Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
afiori
on Feb 20, 2024
|
parent
|
context
|
favorite
| on:
My PHP Problems
Function names are scoped to the current namespace. This means that for local closures it is usually better to define functions as variables
$closure = function(){};
instead of
function closure(){}
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
$closure = function(){};
instead of
function closure(){}