- spl_autoload_register: documentation ( source)
- var_dump: documentation ( source)
<?php
spl_autoload_register(function(){ echo 'throw'; throw new Exception('waa?'); });
spl_autoload_register(function(){ throw new Exception('waa!'); });
try
{
new A;
}
catch (Exception $e)
{
var_dump($e->message, $e->previous->message);
}