PHP 8.5.0 Alpha 2 available for testing

ReflectionExtension::getName

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::getNameObtiene el nombre de la extensión

Descripción

public ReflectionExtension::getName(): string

Obtiene el nombre de la extensión.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

El nombre de la extensión.

Ejemplos

Ejemplo #1 Ejemplo con ReflectionExtension::getName()

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

Resultado del ejemplo anterior es similar a :

string(6) "mysqli"

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top