When accessing a class constant I see that I can use a variable for the class name, e.g. $classname::CONST_VALUE.
$classname::CONST_VALUE
What if I want to use a variable for the c
$variable = $classname.'::'.$constant; constant($variable);
See the docs: http://php.net/constant