Date: 11/02/00
- Next message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions ibase.xml"
- Previous message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/chapters security.xml"
- Next in thread: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Maybe reply: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ronabop Wed Nov 1 22:38:45 2000 EDT
Modified files:
/phpdoc/en/functions misc.xml
Log:
Example for defined()
Index: phpdoc/en/functions/misc.xml
diff -u phpdoc/en/functions/misc.xml:1.33 phpdoc/en/functions/misc.xml:1.34
--- phpdoc/en/functions/misc.xml:1.33 Fri Sep 15 09:09:43 2000
+++ phpdoc/en/functions/misc.xml Wed Nov 1 22:38:45 2000
@@ -171,6 +171,16 @@
<para>
Returns true if the named constant given by
<parameter>name</parameter> has been defined, false otherwise.
+ <example>
+ <title>Checking Constants</title>
+ <programlisting role="php">
+<?php
+if (defined("CONSTANT")){ // Note that it should be quoted
+ echo CONSTANT; //
+ }
+?>
+ </programlisting>
+ </example>
</para>
<para>
See also <function>define</function> and the section on <link
- Next message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions ibase.xml"
- Previous message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/chapters security.xml"
- Next in thread: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Maybe reply: Jesus M. Castagnetto: "[PHP-DOC] cvs: phpdoc /en/functions misc.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

