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