ReflectionConstant::getName

(PHP 8 >= 8.4.0)

ReflectionConstant::getNameGets name

Açıklama

public ReflectionConstant::getName(): string

Gets the name of the constant.

Bağımsız Değişkenler

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

Dönen Değerler

The constants name, which is composed of its namespace and name.

Örnekler

Örnek 1 ReflectionConstant::getName() example

<?php
namespace Foo;

const
BAR = 'bar';

echo (new
\ReflectionConstant('Foo\BAR'))->getName();
?>

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

Foo\BAR

Ayrıca Bakınız

add a note

User Contributed Notes

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