spl_autoload

(PHP 5 >= 5.1.0RC1)

spl_autoload -- Default implementation for __autoload()

Description

void spl_autoload ( string class_name [, string file_extensions] )

This function is intended to be used as a default implementation for __autoload(). If nothing else is specified and autoload_register() is called without any parameters then this functions will be used for any later call to __autoload(). By default it checks all include paths to contain failnames built up by the lowercase class name appended by the filename extensions .inc and .php.


Follow phpf1 on Twitter




F1 Site Family
AJAX F1
CSS F1
Database F1
Flash F1
HTML F1
Java F1
JavaScript F1
PhotoShop F1
PHP F1
Scripts F1
Tutorial F1
Windows F1

Total time: 0.033