Art,

Thanks for the suggestion, but I think there is a flaw in your
solution.

The original issue was how to get at the value of a constant where the
$constant_name is dynamically created as a variable.

In your solution you have defined constant_name as a constant!
So when you assign it, it does, of course, behave as a constant.

I don't think the ${...} notation is doing anything - it is just being
ignored by the parser so far as I can see ...

AW> $test_name="ta_dah";
AW> define("constant_name","test_name");
AW> $constant_value=${constant_name};

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