I know the differences between Lambda
and Closures
. I dont want to use Closure
since it gets its environment, and var_dump()
-ing it would result a tons of output. Using lambda with create_function()
looked a good idea, but its getting deprecated. Then what to use to create functions that not aware in their enviromnent?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Use static closure:
yields