note 123646 added to function.spl-autoload-functions
| From: | 124307954 at qq dot com | Date: | Fri, 01 Mar 2019 06:01:44 +0000 |
| Subject: | note 123646 added to function.spl-autoload-functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210292@lists.php.net to get a copy of this message | ||
<?php
spl_autoload_register(function ($name) {
echo "Want to load $name.\n";
});
spl_autoload_register(function($className) {
var_dump($className);
});
function unregister($className) {
var_dump($className.' i will be the first');
}
spl_autoload_register('unregister');
var_dump(spl_autoload_functions());
===================
array(3) {
[0]=>
object(Closure)#1 (1) {
["parameter"]=>
array(1) {
["$name"]=>
string(10) "<required>"
}
}
[1]=>
object(Closure)#2 (1) {
["parameter"]=>
array(1) {
["$className"]=>
string(10) "<required>"
}
}
[2]=>
string(10) "unregister"
}
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.194 (proxied: 137.59.101.136)
----
Manual Page -- http://php.net/manual/en/function.spl-autoload-functions.php
Edit -- https://master.php.net/note/edit/123646
Del: integrated -- https://master.php.net/note/delete/123646/integrated
Del: useless -- https://master.php.net/note/delete/123646/useless
Del: bad code -- https://master.php.net/note/delete/123646/bad+code
Del: spam -- https://master.php.net/note/delete/123646/spam
Del: non-english -- https://master.php.net/note/delete/123646/non-english
Del: in docs -- https://master.php.net/note/delete/123646/in+docs
Del: other reasons-- https://master.php.net/note/delete/123646
Reject -- https://master.php.net/note/reject/123646
Search -- https://master.php.net/manage/user-notes.php