- spl_autoload_register: documentation ( source)
- header_register_callback: documentation ( source)
<?php
spl_autoload_register( function () {
class Autoloaded {}
} );
header_register_callback( function () {
new Autoloaded();
} );
throw new Exception();