I have the name of a constant stored in a database, when i retrive it, the name is stored in a variable. I need to echo the constants value but can only get at its name.
I have tried echo ${$variable]; but as its a constant and not a variable this doesnt work.
Any help would be really appreciated, thanks