Hi folks

I mailed this to the list some time ago, but it seems to have got
"lost" so here is is again...

I had 2 suggestions from the list:

1) indirection - $constant_value = $$constant_name ;

I had already tried this, but couldn't get it to work. Unless I am
missing something it just gives an "Undefined Variable" error.

2) eval("\$constant_value = $constant_name;") ;

This does work. Thanks Paul and CC!

Geoff Caplan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to