[PHP-DOC] cvs: phpdoc /en/functions funchand.xml From: Jon Parise (jon <email protected>)
Date: 11/25/00

jon Fri Nov 24 21:24:07 2000 EDT

  Modified files:
    /phpdoc/en/functions funchand.xml
  Log:
  Added a simple usage example and a pointer to the method_exists() function.
  
  
Index: phpdoc/en/functions/funchand.xml
diff -u phpdoc/en/functions/funchand.xml:1.2 phpdoc/en/functions/funchand.xml:1.3
--- phpdoc/en/functions/funchand.xml:1.2 Fri Sep 15 09:09:43 2000
+++ phpdoc/en/functions/funchand.xml Fri Nov 24 21:24:06 2000
@@ -373,11 +373,23 @@
       <paramdef>string <parameter>function_name</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
- <simpara>
+ <para>
      Checks the list of defined functions for
      <parameter>function_name</parameter>. Returns true if the given
      function name was found, false otherwise.
- </simpara>
+ <informalexample>
+ <programlisting role="php">
+if (function_exists('imap_open')) {
+ echo "IMAP functions are available.&lt;br&gt;\n";
+} else {
+ echo "IMAP functions are not available.&lt;br&gt;\n";
+}
+ </programlisting>
+ </informalexample>
+ </para>
+ <para>
+ See also <function>method_exists</function>.
+ </para>
    </refsect1>
   </refentry>