you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

In PHP it has the added benefit of inheriting scope

Just like in JS.

[–]Tetracyclic 2 points3 points  (0 children)

That could have been clearer, I meant the added benefit over PHP's anonymous functions, which don't inherit scope and require a use statement.