cvs: phpdoc /en/functions funchand.xml
| From: | Jon Parise | Date: | Sat, 25 Nov 2000 05:24:07 +0000 |
| Subject: | cvs: phpdoc /en/functions funchand.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333074@lists.php.net to get a copy of this message | ||
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.<br>\n";
+} else {
+ echo "IMAP functions are not available.<br>\n";
+}
+ </programlisting>
+ </informalexample>
+ </para>
+ <para>
+ See also <function>method_exists</function>.
+ </para>
</refsect1>
</refentry>