spl_autoload_register()
spl_autoload_register - Register given function as __autoload() implementation
Syntax
bool spl_autoload_register (
callback $autoload_function,
bool $throw,
bool $prepend)
Arguments
- autoload_function - The autoload function being registered. If no parameter is provided, then the default implementation of spl_autoload() will be registered.
- throw - This parameter specifies whether spl_autoload_register() should throw exceptions on error.
- prepend - If true, spl_autoload_register() will prepend the autoloader on the autoload stack instead of appending it.
Description
Register a function with the spl provided __autoload stack. If the stack is not yet activated it will be activated.
Version
PHP 5.1.2
Return value
Returns TRUE on success or FALSE on failure.