charm/util-closuretool

一个用于打印闭包/回调信息的工具,用于调试目的。

1.0.0 2022-06-01 13:58 UTC

This package is not auto-updated.

Last update: 2024-09-19 23:45:41 UTC


README

一个用于打印闭包信息的简单工具,例如在调试时使用。

使用方法

$test = 123;
$closure = function($arg) use ($test) {};

$tool = new Charm\Util\ClosureTool($closure);
echo $tool."\n";

输出

function($arg) use($test=123) (in /root/charm-libs/charm-util-closuretool/test.php)