Hello René,

Wednesday, May 12, 2004, 6:29:13 PM, you wrote:

RF> Such that the output will be MY_NAME. If I echo $val, the output will
RF> be Rene. But I want to see the constants Name, not Value. Any ideas?

No easy way I can think of, but you could do:

$array = get_defined_constants();

and then search $array for your value, returning the key if found.

-- 
Best regards,
 Richard Davey
 http://www.launchcode.co.uk / PHP Development Services
 http://www.phpcommunity.org/wiki/296.html / PHP Community

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to