elixer Mon May 21 18:39:51 2001 EDT
Modified files:
/phpdoc/en/functions info.xml
Log:
Added get_defined_constants() documentation.
Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.46 phpdoc/en/functions/info.xml:1.47
--- phpdoc/en/functions/info.xml:1.46 Sat May 19 08:30:58 2001
+++ phpdoc/en/functions/info.xml Mon May 21 18:39:51 2001
@@ -1363,6 +1363,63 @@
</refsect1>
</refentry>
+ <refentry id="function.get-defined-constants">
+ <refnamediv>
+ <refname>get_defined_constants</refname>
+ <refpurpose>
+ Returns an associative array with the names of all the constants
+ and their values.
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>get_defined_constants</function></funcdef>
+ <void/>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ 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 <function>define</function>
+ function.
+ </para>
+ <para>
+ For example the line below
+ <informalexample>
+ <programlisting>
+print_r (get_defined_constants());
+ </programlisting>
+ </informalexample>
+ will print a list like:
+ <informalexample>
+ <programlisting>
+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
+)
+ </programlisting>
+ </informalexample>
+ </para>
+ <para>
+ See also: <function>get_loaded_extensions</function>.
+ </para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.get-loaded-extensions">
<refnamediv>
<refname>get_loaded_extensions</refname>