I am trying to create a constant name dynamically and then get at the value.
define( CONSTANT_1 , \"Some value\" ) ; // try to use it dynamically ... $const
And to demonstrate that this works with class constants too:
class Joshua { const SAY_HELLO = "Hello, World"; } $command = "HELLO"; echo constant("Joshua::SAY_$command");