CakeFest 2024: The Official CakePHP Conference

ReflectionExtension::getName

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::getName拡張モジュール名を取得する

説明

public ReflectionExtension::getName(): string

拡張モジュールの名前を取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

拡張モジュールの名前を返します。

例1 ReflectionExtension::getName() の例

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

上の例の出力は、 たとえば以下のようになります。

string(6) "mysqli"

参考

add a note

User Contributed Notes

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