spl_autoload_register

spl_autoload_register

(PHP 5 >= 5.1.2, PHP 7)

spl_autoload_registerRegister given function as __autoload() implementation

Description

bool spl_autoload_register ([ callable $autoload_function [, bool $throw = true [, bool $prepend = false ]]] )

Register a function with the spl provided __autoload queue. If the queue is not yet activated it will be activated.

If your code has an existing __autoload() function then this function must be explicitly registered on the __autoload queue. This is bec