e.g.
define('foo','this is foobar'); $var = 'foo'; //need to output 'this is foobar'
thanks
Untested code (but should work):
echo constant($var);
thanks ix, that works nicely!