- var_dump: documentation ( source)
<?php
class Foo extends Exception
{
protected $code = 100;
protected $message = 'Hello';
protected $line = 45;
protected $file = '/path/to/file.php';
}
try {
throw new Foo();
} catch (Foo $e) {
var_dump($e);
}