Gets extension info

# ReflectionFunctionAbstract::getExtension

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

ReflectionFunctionAbstract::getExtension — Gets 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

- ReflectionFunctionAbstract::getExtensionName() - Gets extension name

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open