Page 1 of 1

All defined constants

Posted: Tue Sep 08, 2009 10:37 am
by ngungo
Is there any easy way to echo (the name and value of ) all defined constants? Thanks.

Re: All defined constants

Posted: Tue Sep 08, 2009 10:48 am
by Mark Baker
get_defined_constants()
You can then loop through the array with the constant() function