note 127239 added to function.spl-autoload-register
| From: | abhijeet dot sweden at gmail dot com | Date: | Sat, 09 Jul 2022 04:04:59 +0000 |
| Subject: | note 127239 added to function.spl-autoload-register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218939@lists.php.net to get a copy of this message | ||
Type#1:
<?php
require_once('Second.php');
require_once('First.php');
$Second = new Second;
$Second->run_second();
$First = new First;
$First->run_first();
?>
---------------------------------------------------------
Type#2:
<?php
spl_autoload_register(function($class){
//
require_once($class.'.php');
});
$Second = new Second;
$Second->run_second();
$First = new First;
$First->run_first();
?>
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.133 (proxied: 2409:4043:2c8c:c3d4:58e7:6b38:529c:9c69)
----
Manual Page -- https://php.net/manual/en/function.spl-autoload-register.php
Edit -- https://main.php.net/note/edit/127239
Del: integrated -- https://main.php.net/note/delete/127239/integrated
Del: useless -- https://main.php.net/note/delete/127239/useless
Del: bad code -- https://main.php.net/note/delete/127239/bad+code
Del: spam -- https://main.php.net/note/delete/127239/spam
Del: non-english -- https://main.php.net/note/delete/127239/non-english
Del: in docs -- https://main.php.net/note/delete/127239/in+docs
Del: other reasons-- https://main.php.net/note/delete/127239
Reject -- https://main.php.net/note/reject/127239
Search -- https://main.php.net/manage/user-notes.php