cvs: phpdoc-pl /reference/array/functions array-reduce.xml
| From: | Leszek Krupinski | Date: | Tue, 08 Feb 2005 01:04:08 +0000 |
| Subject: | cvs: phpdoc-pl /reference/array/functions array-reduce.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-392@lists.php.net to get a copy of this message | ||
leszek Mon Feb 7 20:04:08 2005 EDT
Modified files:
/phpdoc-pl/reference/array/functions array-reduce.xml
Log:
[leszek] - updated to 1.8
http://cvs.php.net/diff.php/phpdoc-pl/reference/array/functions/array-reduce.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc-pl/reference/array/functions/array-reduce.xml
diff -u phpdoc-pl/reference/array/functions/array-reduce.xml:1.5
phpdoc-pl/reference/array/functions/array-reduce.xml:1.6
--- phpdoc-pl/reference/array/functions/array-reduce.xml:1.5 Thu Oct 31 21:03:40 2002
+++ phpdoc-pl/reference/array/functions/array-reduce.xml Mon Feb 7 20:04:08 2005
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.5 Maintainer: leszek Status: ready -->
-<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.8 Maintainer: leszek Status: ready -->
+<!-- $Revision: 1.6 $ -->
<refentry id="function.array-reduce">
<refnamediv>
<refname>array_reduce</refname>
@@ -30,12 +30,15 @@
<title>Przyk³ad u¿ycia <function>array_reduce</function></title>
<programlisting role="php">
<![CDATA[
-function rsum($v, $w) {
+<?php
+function rsum($v, $w)
+{
$v += $w;
return $v;
}
-function rmul($v, $w) {
+function rmul($v, $w)
+{
$v *= $w;
return $v;
}
@@ -45,6 +48,7 @@
$b = array_reduce($a, "rsum");
$c = array_reduce($a, "rmul", 10);
$d = array_reduce($x, "rsum", 1);
+?>
]]>
</programlisting>
</example>
@@ -56,8 +60,9 @@
<varname>$d</varname> containing <literal>1</literal>.
</para>
<para>
- Patrz tak¿e: <function>array_filter</function> i
- <function>array_map</function>.
+ Patrz tak¿e: <function>array_filter</function>,
+ <function>array_map</function>, <function>array_unique</function> i
+ <function>array_count_values</function>.
</para>
</refsect1>
</refentry>