__autoload
__autoload
(PHP 5, PHP 7)
__autoload — Attempt to load undefined class
Warning
This feature has been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged.
Description
void __autoload ( string $class )
You can define this function to enable classes autoloading.
Parameters
-
class
-
Name of the class to load
Return Values
No value is returned.
See Also
- spl_autoload_register() - Register given function as __autoload() implementation
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/function.autoload.php