getValue
Description
The getValue of ReflectionConstant for PHP gets the value.
Syntax
public ReflectionConstant::getValue(): mixed
Return
Returns the value of the constant.
Examples
1 · void
<?
namespace Mynamespace
{
const MYCONSTANT = 'value';
$reflectionconstant = new \ReflectionConstant('Mynamespace\MYCONSTANT');
$return = $reflectionconstant->getValue();
echo $return;
}
value