A seemingly simple problem puzzles me for an hour now
I want to get the result from a define which name is previously put together by the programmcode, here is an example
define("TEMPERATURE",25);
define("TEMPERATURE_MAX",45);
$max=1;
if ($max==1){
$suffix="_MAX";
}
else{
$suffix="";
}
echo TEMPERATURE.$suffix;
So actually i want to have 45 echo'ed , but it will display "25_MAX" .. how the heck i am able to put a variable together and resolve the define content i am looking for?
Thanks for your help.
SmartIPS2