note 119305 added to function.spl-autoload-extensions
| From: | pim dot stoit at gmail dot com | Date: | Mon, 09 May 2016 18:00:39 +0000 |
| Subject: | note 119305 added to function.spl-autoload-extensions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205449@lists.php.net to get a copy of this message | ||
Extensions doesn't have to start with a dot, spl_autload() will simply append whatever you
supply to the basename. The following example will try to load "test.php" first, and
"test/index.php" as well:
spl_autoload_register('.php,/index.php');
spl_autoload('Test');
----
Server IP: 72.52.91.14
Probable Submitter: 62.72.192.71
----
Manual Page -- http://php.net/manual/en/function.spl-autoload-extensions.php
Edit -- https://master.php.net/note/edit/119305
Del: integrated -- https://master.php.net/note/delete/119305/integrated
Del: useless -- https://master.php.net/note/delete/119305/useless
Del: bad code -- https://master.php.net/note/delete/119305/bad+code
Del: spam -- https://master.php.net/note/delete/119305/spam
Del: non-english -- https://master.php.net/note/delete/119305/non-english
Del: in docs -- https://master.php.net/note/delete/119305/in+docs
Del: other reasons-- https://master.php.net/note/delete/119305
Reject -- https://master.php.net/note/reject/119305
Search -- https://master.php.net/manage/user-notes.php