PHP: spl_autoload - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

spl_classes spl_autoload_unregister

Last updated: Fri, 26 Jan 2007

view this page in

# 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.

add a note User Contributed Notes
spl_autoload
There are no user contributed notes for this page.
spl_classes spl_autoload_unregister

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST