ReflectionClass::getExtensionName

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

public function getExtensionName(): string;

Gets the name of the extension which defined the class.

Returns

  • mixed - The name of the extension which defined the class, or FALSE for user-defined classes.