Skip to content
/ dump Public

PHP variable dump like ColdFusion's cfdump

Notifications You must be signed in to change notification settings

DDKaka/dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

PHP Dump

Example screenshot:

Dump

To dump data, you just have to add the following code:

$dump = new Dump();
$dump->Output($data);

Full example with test data:

$object = new stdClass();
$object->test_1 = "Test 1 Val";
$object->test_2 = "Test 2 Val";
$object->another = new stdClass();
$object->another->test_3 = "Test 3";

$data = [
    "string_1" => "this is a test",
    "string_2" => "another test",
    "my_struct" => [
        "item_2" => "world",
        "item_1" => "hello"
    ],
    "my_array" => [
        "this",
        "is",
        "an",
        "array"
    ],
    "my_boolean" => true,
    "result_set" => $query,
    "my_object" => $object
];

$dump = new Dump();
$dump->Output($data);

About

PHP variable dump like ColdFusion's cfdump

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages