- var_dump: documentation ( source)
<?php
class A {
public function __construct($a, $b, $c) {
throw new Exception("test");
}
}
class B extends A {
public function __construct($a, $b, $c) {
var_dump($this);
try {
parent::__construct($a, $b, $c);
} catch (Exception $e) {
//var_dump($e);
var_dump($this);
}
}
}
$b = new B(1, 2, 3);
?>