Replaced 'function' with 'funcname' as per synopsis

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165038 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Aidan Lister 2004-08-03 08:51:19 +00:00
parent 890f1d16c2
commit 2e7fb0b1f6

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.20 $ -->
<!-- $Revision: 1.21 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.array-walk">
<refnamediv>
@ -13,26 +13,26 @@
<methodsynopsis>
<type>bool</type><methodname>array_walk</methodname>
<methodparam><type>array</type><parameter>&amp;array</parameter></methodparam>
<methodparam><type>callback</type><parameter>function</parameter></methodparam>
<methodparam><type>callback</type><parameter>funcname</parameter></methodparam>
<methodparam choice="opt"><type>mixed</type><parameter>userdata</parameter></methodparam>
</methodsynopsis>
<simpara>
&return.success;
</simpara>
<simpara>
Applies the user-defined function <parameter>function</parameter> to each
Applies the user-defined function <parameter>funcname</parameter> to each
element of the <parameter>array</parameter> array. Typically,
<parameter>function</parameter> takes on two parameters.
<parameter>funcname</parameter> takes on two parameters.
The <parameter>array</parameter> parameter's value being the first, and
the key/index second. If the optional <parameter>userdata</parameter>
parameter is supplied, it will be passed as the third parameter to
the callback <parameter>function</parameter>.
the callback <parameter>funcname</parameter>.
</simpara>
<simpara>
If function <parameter>function</parameter> requires more parameters than
If function <parameter>funcname</parameter> requires more parameters than
given to it, an error of level <link linkend="errorfunc.constants">
E_WARNING</link> will be generated each time <function>array_walk</function>
calls <parameter>function</parameter>. These warnings may be suppressed by
calls <parameter>funcname</parameter>. These warnings may be suppressed by
prepending the PHP error operator
<link linkend="language.operators.errorcontrol">@</link> to the
<function>array_walk</function> call, or by using
@ -40,9 +40,9 @@
</simpara>
<note>
<para>
If <parameter>function</parameter> needs to be working with the
If <parameter>funcname</parameter> needs to be working with the
actual values of the array, specify the first parameter of
<parameter>function</parameter> as a
<parameter>funcname</parameter> as a
<link linkend="language.references">reference</link>. Then,
any changes made to those elements will be made in the
original array itself.
@ -50,7 +50,7 @@
</note>
<note>
<para>
Passing the key and userdata to <parameter>function</parameter> was
Passing the key and userdata to <parameter>funcname</parameter> was
added in 4.0.0
</para>
</note>