philip Sun Mar 17 17:01:08 2002 EDT
Modified files:
/phpdoc/en/functions funchand.xml
Log:
function_exists: * Works on both internal/user defined functions.
* See also get_defined_functions.
* Implemented &return.success;
* Should we expand on when this "won't work", like with
certain image functions?
Index: phpdoc/en/functions/funchand.xml
diff -u phpdoc/en/functions/funchand.xml:1.28 phpdoc/en/functions/funchand.xml:1.29
--- phpdoc/en/functions/funchand.xml:1.28 Thu Feb 21 04:11:46 2002
+++ phpdoc/en/functions/funchand.xml Sun Mar 17 17:01:07 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.28 $ -->
+<!-- $Revision: 1.29 $ -->
<reference id="ref.funchand">
<title>Function Handling functions</title>
<titleabbrev>Functions</titleabbrev>
@@ -427,9 +427,8 @@
<methodparam><type>string</type><parameter>function_name</parameter></methodparam>
</methodsynopsis>
<para>
- Checks the list of defined functions for
- <parameter>function_name</parameter>. Returns &true; if the given
- function name was found, &false; otherwise.
+ Checks the list of defined functions, both built-in (internal) and
+ user-defined, for <parameter>function_name</parameter>. &return.success;
<informalexample>
<programlisting role="php">
<![CDATA[
@@ -441,11 +440,16 @@
]]>
</programlisting>
</informalexample>
- Note that a function name may exist, even if the function itself
- is unusable due to configuration or compiling options.
+ Note that a function name may exist even if the function itself
+ is unusable due to configuration or compiling options (with the
+ <link linkend="ref.image">image</link> functions being an example).
+ Also note that <function>function_exists</function> will return
+ &false; for constructs, such as <function>include_once</function>
+ and <function>echo</function>.
</para>
<para>
- See also <function>method_exists</function>.
+ See also <function>method_exists</function> and
+ <function>get_defined_functions</function>.
</para>
</refsect1>
</refentry>