Dumps information about a variable(s)
$foo = 123; echo (new \Phalcon\Debug\Dump())->variable($foo, "foo");
$foo = "string"; $bar = ["key" => "value"]; $baz = new stdClass(); echo (new \Phalcon\Debug\Dump())->variables($foo, $bar, $baz);
...
...
Phalcon\Debug\Dump constructor
Alias of variables() method
Get style for type
Set styles for vars type
Alias of variable() method
Prepare an HTML string of information about a single variable.
Returns an HTML string of information about a single variable.
echo (new \Phalcon\Debug\Dump())->variable($foo, "foo");
Returns an HTML string of debugging information about any number of variables, each wrapped in a “pre” tag.
$foo = "string"; $bar = ["key" => "value"]; $baz = new stdClass(); echo (new \Phalcon\Debug\Dump())->variables($foo, $bar, $baz);
Returns an JSON string of information about a single variable.
$foo = ["key" => "value"]; echo (new \Phalcon\Debug\Dump())->toJson($foo); $foo = new stdClass(); $foo->bar = 'buz'; echo (new \Phalcon\Debug\Dump())->toJson($foo);
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Debug_Dump.html