Skip to content

orangeable/php-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Dump

This variable dump example is for PHP, modeled after CFML's cfdump tag.

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 = (object) [
    "foo" => "bar",
    "property" => "value"
];

$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,
    "my_object" => $object
];

include "dump.php";

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

About

This variable dump example is for PHP, modeled after CFML's cfdump tag.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages