$x = 42; echo do_dump($x);
int(42)
$my_array = array('apple', 'banana', 'cherry'); echo do_dump($my_array);
array(3) { [0]=> string(5) "apple" [1]=> string(6) "banana" [2]=> string(6) "cherry" }
class Person { public $name = 'John'; private $age = 30; } $john = new Person(); echo do_dump($john);
object(Person)#1 (2) { ["name"]=> string(4) "John" ["age":"Person":private]=> int(30) }It's not entirely clear which package library do_dump comes from, as it appears to be a standalone function that can be included in any PHP script. However, it is widely used in various libraries and frameworks, such as Symfony and Laravel.