update : 2015.11.03
php.shukuma.com

검색:
 
 
Default implementation for __autoload()

spl_autoload

(PHP 5 >= 5.1.2)

spl_autoloadDefault implementation for __autoload()

설명

void spl_autoload ( string $class_name [, string $file_extensions = spl_autoload_extensions() ] )

This function is intended to be used as a default implementation for __autoload(). If nothing else is specified and spl_autoload_register() is called without any parameters then this function will be used for any later call to __autoload().

인수

class_name

The lowercased name of the class (and namespace) being instantiated.

file_extensions

By default it checks all include paths to contain filenames built up by the lowercase class name appended by the filename extensions .inc and .php.

반환값

값을 반환하지 않습니다.

오류/예외

Throws LogicException when the class is not found and there are no other autoloaders registered.