Function __global->spl_autoload_register

Definitions

sources_custom/phpstub.php

  • Register given function as __autoload() implementation.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$autoload_function mixed No No required parameter N/A N/A The autoload function being registered
$throw boolean No No True N/A N/A Throw error if cannot register
$prepend boolean No No False N/A N/A Prepend to queue rather than append

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Register given function as __autoload() implementation.
 *
 * @param  mixed $autoload_function The autoload function being registered
 * @param  boolean $throw Throw error if cannot register
 * @param  boolean $prepend Prepend to queue rather than append
 * @return boolean Success status
 */

function spl_autoload_register($autoload_function, bool $throw = true, bool $prepend = false) : bool