ReflectionClass::isInstance

( excerpt from http://php

Description

public function isInstance(
  $obj,
): bool;

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.