ReflectionConstant::getExtensionName

(PHP 8 >= 8.5.0)

ReflectionConstant::getExtensionNameGets name of the defining extension

Açıklama

public ReflectionConstant::getExtensionName(): string|false

Gets the name of the extension which defined the constant.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

The name of the extension which defined the constant, or false for user-defined constants.

Örnekler

Örnek 1 Basic usage of ReflectionConstant::getExtensionName()

<?php
var_dump
((new ReflectionConstant('SQLITE3_TEXT'))->getExtensionName());
?>

Yukarıdaki örneğin çıktısı:

string(7) "sqlite3"

Ayrıca Bakınız

add a note

User Contributed Notes

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