mmantai/var_dumper

dump variables with formatting

0.0.1 2023-10-23 11:52 UTC

This package is auto-updated.

Last update: 2024-10-12 16:05:14 UTC


README

Object

use Mmantai\VarDumper\VarDumper;

class Calc
{

    public function __construct(public int|float $a, public int|float $b)
    {

    }
    
    public function add()
    {
        return $this->a + $this->b;
    }
}

$calc = new Calc(5, 10);

VarDumper::dump($calc);

Output

Example

Array

use Mmantai\VarDumper\VarDumper;

$arr = [
    "This",
    "is",
    "an",
    "array",
    5,
    10.0
];

VarDumper::dump($arr);

Output

Example