php8.5
Home/ Manual/ reflection / reflectionextension/ ReflectionExtension::getName

ReflectionExtension::getName

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Gets extension name

Description

ReflectionExtension::getName(): string

Gets the extensions name.

Parameters Parameters

Return Values

The extensions name.

Examples

ReflectionExtension::getName example

php
<?php
$ext = new ReflectionExtension('mysqli');
var_dump($ext->getName());
?>

The above example will output something similar to:

output
string(6) "mysqli"

See Also

  • ReflectionExtension::getClassNames

Source: reference/reflection/reflectionextension/getname.xml · from the official PHP manual (php/doc-en)