php / latest / reflectionfunctionabstract.getextension.html

ReflectionFunctionAbstract::getExtension

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

ReflectionFunctionAbstract::getExtensionGets extension info

Description

public ReflectionFunctionAbstract::getExtension(): ?ReflectionExtension

Get the extension information of a function.

Parameters

This function has no parameters.

Return Values

The extension information, as a ReflectionExtension object, or null for user-defined functions.

See Also

© 1997–2023 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionfunctionabstract.getextension.php