- var_dump: documentation ( source)
<?php
class A {
private $ye = "true";
private $nah;
public function __construct()
{
throw new B($this);
}
}
class B {
private $that;
public function __construct($that)
{
$this->that = $that;
}
}
try {
$a = new A();
} catch (B $b) {
var_dump($b, $a);
}