cvs: phpdoc /en/functions info.xml

From: Date: Tue, 22 May 2001 01:39:51 +0000
Subject: cvs: phpdoc /en/functions info.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335497@lists.php.net to get a copy of this message
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] =&gt; 1 + [E_WARNING] =&gt; 2 + [E_PARSE] =&gt; 4 + [E_NOTICE] =&gt; 8 + [E_CORE_ERROR] =&gt; 16 + [E_CORE_WARNING] =&gt; 32 + [E_COMPILE_ERROR] =&gt; 64 + [E_COMPILE_WARNING] =&gt; 128 + [E_USER_ERROR] =&gt; 256 + [E_USER_WARNING] =&gt; 512 + [E_USER_NOTICE] =&gt; 1024 + [E_ALL] =&gt; 2047 + [TRUE] =&gt; 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>

« previous php.doc (#969335497) next »