cvs: phpdoc-hu /reference/array/functions array-sum.xml
| From: | Cece) Szabolcs | Date: | Thu, 05 Aug 2004 19:35:43 +0000 |
| Subject: | cvs: phpdoc-hu /reference/array/functions array-sum.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-882@lists.php.net to get a copy of this message | ||
cece Thu Aug 5 15:35:43 2004 EDT
Modified files:
/phpdoc-hu/reference/array/functions array-sum.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/array-sum.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-hu/reference/array/functions/array-sum.xml
diff -u phpdoc-hu/reference/array/functions/array-sum.xml:1.3
phpdoc-hu/reference/array/functions/array-sum.xml:1.4
--- phpdoc-hu/reference/array/functions/array-sum.xml:1.3 Wed Aug 14 12:56:19 2002
+++ phpdoc-hu/reference/array/functions/array-sum.xml Thu Aug 5 15:35:43 2004
@@ -1,19 +1,20 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/array.xml, last change in rev 1.3 -->
<!-- last change to 'array-sum' in en/ tree in rev 1.59 -->
-<!-- EN-Revision: 1.4 Maintainer: gerzson Status: ready -->
+<!-- EN-Revision: 1.9 Maintainer: cece Status: ready -->
+<!-- CREDITS: gerzson -->
<!-- OLD-Revision: 1.173/EN.1.59 -->
<refentry id="function.array-sum">
<refnamediv>
<refname>array_sum</refname>
<refpurpose>
- tömbbeli elemek összegét számolja ki
+ A tömbbeli elemek összegét számolja ki
</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
<methodsynopsis>
- <type>mixed</type><methodname>array_sum</methodname>
+ <type>number</type><methodname>array_sum</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
@@ -26,18 +27,29 @@
<title><function>array_sum</function> példák</title>
<programlisting role="php">
<![CDATA[
+<?php
$a = array(2, 4, 6, 8);
-echo "összeg(a) = ".array_sum($a); // kiírja: összeg(a) = 20
+echo "sum(a) = ".array_sum($a);
-$b = array("a"=>1.2,"b"=>2.3,"c"=>3.4);
-echo "összeg(b) = ".array_sum($b); // kiírja: összeg(b) = 6.9
+$b = array("a" => 1.2, "b" = > 2.3, "c" => 3.4);
+echo "sum(b) = ".array_sum($b);
+?>
]]>
</programlisting>
+ <para>
+ &example.outputs;
+ </para>
+ <screen>
+<![CDATA[
+sum(a) = 20
+sun(b) = 6.9
+]]>
+ </screen>
</example>
</para>
<note>
<para>
- A 4.0.6 verziót megelõzõen a PHP módosította a paraméterként
+ A 4.2.1 verziót megelõzõen a PHP módosította a paraméterként
átadott tömböt, a sztringeket számmá konvertálta, ami majdnem
mindig 0-val volt egyenlõ.
</para>