我怎么知道我的PHP是否使用Autoloader?

我怎么知道我的PHP是否使用Autoloader?

问题描述:

I was trying to Use a PHP class, and in the instructions to use it was mentioned separately for "PHP with autoloading enabled" and "PHP w/o Autoloading".

How Do I know if my version of PHP which is 5.4+ uses Autoloading or not ?

我试图使用PHP类,并在使用它的说明中单独提到“PHP with autoloading” 启用“和”PHP没有自动加载“。 p>

如何知道我的5.4版本的PHP是否使用自动加载? p> div>

Here you can read about autoload.

To find out if your framework or set of classes use autoload you can search for: __autoload or spl_autoload_register

Or just search for _autoload to find both mentions.

Search your code base for __autoload. If you find anything you are using (or your framework is) auto-loading, otherwise you are not.