PHP Function Reference

PHP __autoload() Function



The PHP __autoload() function attempts to load undefined class. It is used to enable classes autoloading.

Note: This function has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0.

Syntax

__autoload(class)

Parameters

class Required. Specify the name of the class to load.

Return Value

No value is returned.


❮ PHP Classes/Objects Reference