__autoload

(PHP 5, PHP 7)

__autoload尝试加载未定义的类

Warning

This feature has been DEPRECATED as of PHP 7.2.0. Relying on this feature is highly discouraged.

说明

__autoload ( string $class ) : void

你可以通过定义这个函数来启用类的自动加载

参数

class

待加载的类名。

返回值

没有返回值。

参见