spl_autoload_functions()
spl_autoload_functions() — Return all registered __autoload() functions.
Built-in function of PHP 8.5. The manual lists it as available in PHP 5 >= 5.1.0, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.
Signature
spl_autoload_functions(): array
Parameters
This function takes no parameters.
Return value
An array of all registered __autoload functions. If no function is registered, or the autoload queue is not activated, then the return value will be an empty array.
Example
The PHP manual ships no example for spl_autoload_functions(); the signature and the parameter table above are the contract.
Changelog
| Version | Change |
|---|---|
| 8.0.0 | Return value was updated to always be an array; previously this function returned false if the autoload queue wasn't activated. |
All PHP 8.5 built-in functions
Reference card built from the PHP manual page spl_autoload_functions() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.