Logo

debug()

ops...
Thanks to: No one :(

Description

Debugs a variable by printing it to the terminal or brwoser.

Usage: debug(mixed $var, boolean $showHtml = null, $showFrom = true)
 
$data = [
    1 => "one",
    2 => 2,
    3 => [
        1 => "one",
        2 => 2,
        ...
    ]
    ...
]
debug($data)
 
// Outputs
[
    1 => "one",
    2 => 2,
    3 => [
        1 => "one",
        2 => 2,
        ...
    ]
    ...
]