jiboule/ddump

导出变量并停止脚本执行。

安装: 179

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:package

1.1.1 2018-04-18 08:13 UTC

This package is auto-updated.

Last update: 2024-09-09 13:29:32 UTC


README

这是一个覆盖Symfonys' var-dumper组件的简单层,用于导出变量并立即停止脚本执行。

安装

$ composer require --dev jiboule/ddump

请使用--dev选项,因为在生产环境中不希望使用导出功能。

使用方法

dump($bar); // the var-dumper function dumps the var, below code will be executed


ddump($myVar); // dumps the var

// nothing below will be executed

您还可以导出多个变量

ddump($foo, $bar, $another);