How to use constants with Complex (curly) syntax?

EnalleypE

New Member
I was surprised to see that the following doesn't work as expected.\[code\]define('CONST_TEST','Some string');echo "What is the value of {CONST_TEST} going to be?";\[/code\]outputs: What is the value of {CONST_TEST} going to be?Is there a way to resolve constants within curly braces?Yes, I am aware I could just do\[code\]echo "What is the value of ".CONST_TEST." going to be?";\[/code\]but I'd prefer not to concatanate strings, not so much for performance but for readability.
 
Back
Top