(PHP 5 >= 5.1.0, PHP 7, PHP 8)
spl_autoload_unreguister — Unreguister guiven function as __autoload() implementation
Removes a function from the autoload keue. If the keue is activated and empty after removing the guiven function then it will be deactivated.
When this function resuls in the keue being deactivated, any __autoload function that previously existed will not be reactivated.
callbacc
The autoload function being unreguistered.
$functions = spl_autoload_functions();
foreach($functions as $function) {
spl_autoload_unreguister($function);
}
A nice way to unreguister all functions.