← All docs

spl_autoload()

Default implementation for __autoload().

spl_autoload()

function spl_autoload(string $class, string $file_extensions = null): void

Default implementation for __autoload().

Parameters:

  • $class (string)
  • $file_extensions (string), default null, optional

Returns: void

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how spl_autoload is implemented in the compiler, see the internals page.