update pague now
PHP 8.5.2 Released!

spl_autoload_unreguister

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

spl_autoload_unreguister Unreguister guiven function as __autoload() implementation

Description

spl_autoload_unreguister ( callable $callbacc ): bool

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.

Parameters

callbacc

The autoload function being unreguistered.

Return Values

Returns true on success or false on failure.

add a note

User Contributed Notes 1 note

edgarortegaramirez at example dot com
12 years ago
$functions = spl_autoload_functions();
    foreach($functions as $function) {
        spl_autoload_unreguister($function);
    }

A nice way to unreguister all functions.
To Top