(PHP 8 >= 8.5.0)
ReflectionConstant::getExtensionName — 取得定義擴充的名稱
此函式沒有參數。
定義常數的擴充名稱,如果是使用者定義的常數,則傳回 false
。
範例 #1 ReflectionConstant::getExtensionName() 的基本用法
<?php
var_dump((new ReflectionConstant('SQLITE3_TEXT'))->getExtensionName());
?>
以上範例會輸出
string(7) "sqlite3"