Added a simple usage example and a pointer to the method_exists() function.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@36580 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jon Parise 2000-11-25 05:24:06 +00:00
parent 75e0f23778
commit 1234fe480b

View file

@ -373,11 +373,23 @@ foo (1, 2, 3); // Prints 'Number of arguments: 3'
<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>