note 88050 deleted from function.include-once by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 08:03:40 +0000 |
| Subject: | note 88050 deleted from function.include-once by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196779@lists.php.net to get a copy of this message | ||
Note Submitter: neil at holcomb dot com
----
Using include_once() in the __autoload() function is redundant. __autoload() is only called when
php can't find your class definition. If your file containg your class was already included,
the class defenition would already be loaded and __autoload() would not be called. So save a little
overhead and only use include() within __autoload()
Neil Holcomb