Added a second optional parameter to call_user_func().

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@26986 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2000-06-24 19:31:39 +00:00
parent 05f2a565ba
commit 3f288f5d0d

View file

@ -3,40 +3,45 @@
<titleabbrev>Variables</titleabbrev>
<refentry id="function.call-user-func">
<refnamediv>
<refname>call_user_func</refname>
<refpurpose>Call a user function given by the first parameter</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<refnamediv>
<refname>call_user_func</refname>
<refpurpose>
Call a user function given by the first parameter
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>mixed
<function>call_user_func</function>
</funcdef>
<paramdef>string
<parameter>function_name</parameter>
</paramdef>
<paramdef>
mixed
<parameter><optional>parameters*</optional></parameter>
</paramdef>
<funcdef>mixed
<function>call_user_func</function>
</funcdef>
<paramdef>string
<parameter>function_name</parameter>
</paramdef>
<paramdef>mixed
<parameter><optional>parameter</optional></parameter>
</paramdef>
<paramdef>mixed
<parameter><optional>...</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
<para>
Call a user defined function given by the <parameter>function_name</parameter>
parameter. Take the following:
<informalexample>
<programlisting role="php">
</funcsynopsis>
<para>
Call a user defined function given by the
<parameter>function_name</parameter> parameter. Take the
following:
<informalexample>
<programlisting role="php">
function barber ($type) {
print "You wanted a $type haircut, no problem";
print "You wanted a $type haircut, no problem";
}
call_user_func('barber', "mushroom");
call_user_func('barber', "shave");
</programlisting>
</informalexample>
</para>
</refsect1>
call_user_func ('barber', "mushroom");
call_user_func ('barber', "shave");
</programlisting>
</informalexample>
</para>
</refsect1>
</refentry>
<refentry id="function.doubleval">
@ -343,7 +348,7 @@ if (!isset($var)) { // evaluates false
</simpara>
<simpara>
See also <function>is_bool</function>,
<function>is_double</function>,
<function>is_double</function>,
<function>is_float</function>,
<function>is_integer</function>,
<function>is_string</function>,
@ -420,7 +425,9 @@ if (!isset($var)) { // evaluates false
<refentry id="function.is-numeric">
<refnamediv>
<refname>is_numeric</refname>
<refpurpose>Finds whether a variable is a number or a numeric string</refpurpose>
<refpurpose>
Finds whether a variable is a number or a numeric string
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>