ReflectionClass::isInstance

( excerpt from http://php.net/manual/en/reflectionclass.isinstance.php )

Description

public function isInstance(
  $obj,
): bool

( excerpt from http://php.net/manual/en/reflectionclass.isinstance.php )

Checks if an object is an instance of a class.

Parameters

  • $obj

Return Values

  • bool - Returns TRUE on success or FALSE on failure.