From c264e11158dc801d1e9d0842b644cac61d5df2da Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Tue, 22 May 2001 01:39:51 +0000 Subject: [PATCH] Added get_defined_constants() documentation. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48132 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/info.xml | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/functions/info.xml b/functions/info.xml index 6d14373e2d..50d265ba42 100644 --- a/functions/info.xml +++ b/functions/info.xml @@ -1363,6 +1363,63 @@ putenv ("UNIQID=$uniqid"); + + + get_defined_constants + + Returns an associative array with the names of all the constants + and their values. + + + + Description + + + array get_defined_constants + + + + + This function returns the names and values of all the constants + currently defined. This includes those created by extensions as + well as those created with the define + function. + + + For example the line below + + +print_r (get_defined_constants()); + + + will print a list like: + + +Array +( + [E_ERROR] => 1 + [E_WARNING] => 2 + [E_PARSE] => 4 + [E_NOTICE] => 8 + [E_CORE_ERROR] => 16 + [E_CORE_WARNING] => 32 + [E_COMPILE_ERROR] => 64 + [E_COMPILE_WARNING] => 128 + [E_USER_ERROR] => 256 + [E_USER_WARNING] => 512 + [E_USER_NOTICE] => 1024 + [E_ALL] => 2047 + [TRUE] => 1 +) + + + + + See also: get_loaded_extensions. + + + + get_loaded_extensions