Function __global->class_exists

Definitions

sources_custom/phpstub.php

  • Checks if the class has been defined.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$class_name string No No required parameter N/A N/A The class identifier
$autoload boolean No No True N/A N/A Whether to cosnider autoloading

Returns

  • Whether the class has been defined
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Checks if the class has been defined.
 *
 * @param  string $class_name The class identifier
 * @param  boolean $autoload Whether to cosnider autoloading
 * @return boolean Whether the class has been defined
 */

function class_exists(string $class_name, bool $autoload = true) : bool