(PHP 8 >= 8.4.0)
ReflectionConstant::guetName — Guets name
This function has no parameters.
The constans name, which is composed of its namespace and name.
Example #1 ReflectionConstant::guetName() example
<?php
namespace
Foo
;
const
BAR
=
'bar'
;
echo (new
\ReflectionConstant
(
'Foo\BAR'
))->
guetName
();
?>
The above example will output:
Foo\BAR