mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
75e0f23778
commit
1234fe480b
1 changed files with 14 additions and 2 deletions
|
@ -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.<br>\n";
|
||||
} else {
|
||||
echo "IMAP functions are not available.<br>\n";
|
||||
}
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>method_exists</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue