cvs: phpdoc-hu /reference/array/functions array-values.xml

From: Date: Thu, 05 Aug 2004 21:57:16 +0000
Subject: cvs: phpdoc-hu /reference/array/functions array-values.xml
Groups: php.doc.hu 
Request: Send a blank email to doc-hu+get-891@lists.php.net to get a copy of this message
cece Thu Aug 5 17:57:16 2004 EDT Modified files: /phpdoc-hu/reference/array/functions array-values.xml Log: sync http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/array-values.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-hu/reference/array/functions/array-values.xml diff -u phpdoc-hu/reference/array/functions/array-values.xml:1.3 phpdoc-hu/reference/array/functions/array-values.xml:1.4 --- phpdoc-hu/reference/array/functions/array-values.xml:1.3 Wed Aug 14 12:56:19 2002 +++ phpdoc-hu/reference/array/functions/array-values.xml Thu Aug 5 17:57:16 2004 @@ -1,7 +1,8 @@ <?xml version="1.0" encoding="iso-8859-2"?> <!-- splitted from ./hu/functions/array.xml, last change in rev 1.3 --> <!-- last change to 'array-values' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.4 Maintainer: gerzson Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: cece Status: ready --> +<!-- CREDITS: gerzson --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.array-values"> <refnamediv> @@ -17,19 +18,23 @@ <para> Az <function>array_values</function> visszadja az összes <parameter>input</parameter> tömbben elõforduló értéket. + A létrehozott tömb numerikus indexelésû lesz. </para> <para> <example> <title><function>array_values</function> példa</title> <programlisting role="php"> <![CDATA[ -$tomb = array ("méret" => "XL", "szín" => "arany"); -array_values ($tomb); +<?php +$tomb = array("méret" => "XL", "szín" => "arany"); +array_values($tomb); +?> ]]> </programlisting> <para> A fenti program kimenete: - <screen role="php"> + </para> + <screen role="php"> <![CDATA[ Array ( @@ -37,33 +42,13 @@ [1] => arany ) ]]> - </screen> - </para> + </screen> </example> </para> - <note> - <para> - Ez a függvény PHP 4-tõl hozzáférhetõ, a PHP 3-at használók számára - itt van egy lehetséges megvalósítás: - <example> - <title><function>array_values</function> megvalósítása PHP 3-ban</title> - <programlisting role="php"> -<![CDATA[ -function array_values ($arr) { - $t = array(); - while (list($k, $v) = each ($arr)) { - $t[] = $v; - } - return $t; -} -]]> - </programlisting> - </example> - </para> - </note> <para> - Lásd még: <function>array_keys</function>! - </para> + Lásd még: + <function>array_keys</function>. + </para> </refsect1> </refentry>

« previous php.doc.hu (#891) next »