function callback($callback){ $callback(); } //这种写法一定让你很爽 callback(function(){ echo "Closures test"; });