PHP closures are similar to JS

From , 2 Years ago, written in PHP, viewed 97 times.
URL https://pastebin.vip/view/c5c1cb0b
  1. function callback($callback){
  2.     $callback();
  3. }
  4.  
  5. //这种写法一定让你很爽
  6. callback(function(){
  7.     echo "Closures test";
  8. });

Reply to "PHP closures are similar to JS"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website