18+ tomw, 1 month ago @janeadams Regrettably, PHP does take a string to define() to set the name of the constant. In fact, passing the bare constant name is a common error: php > define(COOL_MODE, true); Warning: Uncaught Error: Undefined constant "COOL_MODE" in php shell code:1
@janeadams Regrettably, PHP does take a string to define() to set the name of the constant. In fact, passing the bare constant name is a common error:
php > define(COOL_MODE, true);
Warning: Uncaught Error: Undefined constant "COOL_MODE" in php shell code:1