php8.5
Home/ Manual/ spl / functions/ spl_autoload_functions

spl_autoload_functions

PHP function Edit on GitHub ✎

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

Return all registered __autoload() functions

Description

spl_autoload_functions(): array

Get all registered __autoload() functions.

Parameters Parameters

Return Values

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.

Changelog

VersionDescription
8.0.0Return value was updated to always be an Array; previously this function returned false if the autoload queue wasn't activated.

Source: reference/spl/functions/spl-autoload-functions.xml · from the official PHP manual (php/doc-en)