<?php
use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\HtmlDumper;
use Symfony\Component\VarDumper\VarDumper;
$obj = new ArrayObject([1,2,3,4,]);
// used var dumper objects
$varcloner = new VarCloner();
$dumper = new HtmlDumper();
$dumper->dump($varcloner->cloneVar($obj));
// static call
VarDumper::dump($obj);
// function (added with composer)
dump($obj);
ArrayObject {#1390
-storage: array:4 [
0 => 1
1 => 2
2 => 3
3 => 4
]
: false
: false
: "ArrayIterator"
}
^ ArrayObject {#1390
-storage: array:4 [
0 => 1
1 => 2
2 => 3
3 => 4
]
: false
: false
: "ArrayIterator"
}
^ ArrayObject {#1390
-storage: array:4 [
0 => 1
1 => 2
2 => 3
3 => 4
]
: false
: false
: "ArrayIterator"
}