Hi, if I the following: <? Define ("coremod", "Core Module"); $zmod = "coremod"; ?>
how can I print out the constant "coremod" with the variable $zmod?
print $zmod // output "coremod" however I would like it to appear "Core Module". Is it possible?
try $zmod = coremod;
Hi,
that would works. However, I'm not hardcoding $zmod. $zmod is yet another variable taken out from database. So that would be $zmod = $rs->fields[0] and that would automatically become $zmod = "coremod"
Any workaround? Thanks.
Oh, I found the workaround. Its print constant($zmod)