Function __global->is_a

Definitions

sources_custom/phpstub.php

  • Whether the object is of this class or has this class as one of its parents.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$object object No No required parameter N/A N/A The object
$class_name string No No required parameter N/A N/A The class name

Returns

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Whether the object is of this class or has this class as one of its parents.
 *
 * @param  object $object The object
 * @param  string $class_name The class name
 * @return boolean Whether it is
 */

function is_a(object $object, string $class_name) : bool