spl_autoload
spl_autoload
Default implementation for __autoload()
void **spl_autoload** string $class $file_extensions
This function is intended to be used as a default implementation for
. If nothing else is specified and
is
called without any parameters then will be used for any
later call to .
__autoload``spl_autoload_register``spl_autoload``__autoload
class
The name of the class being instantiated.
When calling the function, the name of the class with the namespace is passed to the parameter.
The will not contain the leading backslash of a fully-qualified identifier.
class
file_extensions
By default it checks all s to
contain filenames built up by the lowercase class name appended by the
filename extensions and .
include_path.inc``.php
return.void
Throws when the class is not found
and there are no other autoloaders registered.
LogicException