Re: spl_autoload vs __autoload
| From: | Stefan Priebsch | Date: | Fri, 28 Dec 2007 13:13:47 +0000 |
| Subject: | Re: spl_autoload vs __autoload | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34270@lists.php.net to get a copy of this message | ||
Andrew Mason schrieb:
> Hi guys,
> Can anyone shed some light on the advantages of the spl_autoload over
> the standard __autoload ? is there any ?
You can only register one __autoload() function, whereas spl_autoload()
allows for a hierarchy of handlers. This allows for libraries to
register their own autoload handler, for example.
Regards,
Stefan
--
>e-novative> - We make IT work for you.
e-novative GmbH - HR: Amtsgericht München HRB 139407
Sitz: Wolfratshausen - GF: Dipl. Inform. Stefan Priebsch
http://www.e-novative.de - GnuPG Key: 0x7DB67F7F