Hi ! !
Lets say I have $str = "some_value";
but as well I have that
define("some_value","HOORAYS");
And I'd like to evaulate that $str so I get the HOORAYS value
I already tryed echo eval($str);
any ideas ?
Names of defined constants are not just strings. You would write:
$str = some_value;
[man]constant/man; is probably what you want...
constant($str); did the trick THANKS ! !