cvs: phpdoc-hu /reference/array/functions array-unique.xml
| From: | Bagi Levente L�szl� | Date: | Sat, 25 Sep 2004 21:39:07 +0000 |
| Subject: | cvs: phpdoc-hu /reference/array/functions array-unique.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-1104@lists.php.net to get a copy of this message | ||
bagilevi Sat Sep 25 17:39:07 2004 EDT
Modified files:
/phpdoc-hu/reference/array/functions array-unique.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/array-unique.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-hu/reference/array/functions/array-unique.xml
diff -u phpdoc-hu/reference/array/functions/array-unique.xml:1.3
phpdoc-hu/reference/array/functions/array-unique.xml:1.4
--- phpdoc-hu/reference/array/functions/array-unique.xml:1.3 Wed Aug 14 12:56:19 2002
+++ phpdoc-hu/reference/array/functions/array-unique.xml Sat Sep 25 17:39:07 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/array.xml, last change in rev 1.3 -->
<!-- last change to 'array-unique' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.4 Maintainer: gerzson Status: ready -->
+<!-- EN-Revision: 1.13 Maintainer: gerzson Status: ready -->
<!-- OLD-Revision: 1.173/EN.1.2 -->
<refentry id="function.array-unique">
<refnamediv>
@@ -31,38 +31,33 @@
Két elem akkor és csakis akkor tekinthetõ egyenlõnek, ha
<literal>(string) $elem1 === (string) $elem2</literal>,
azaz ha sztring ábrázolásuk megegyezik.
- <!-- TODO: example of it... -->
</simpara>
</note>
- <warning>
- <simpara>
- PHP 4.0.4-ben hibásan mûködött.
- <!-- TODO: when exactly was this broken?... -->
- </simpara>
- </warning>
<para>
<example>
<title><function>array_unique</function> példa</title>
<programlisting role="php">
<![CDATA[
-$bemenet = array ("a" => "zöld", "piros", "b" =>
"zöld", "kék", "piros");
-$eredmeny = array_unique ($bemenet);
+<?php
+$bemenet = array("a" => "zöld", "piros", "b" =>
"zöld", "kék", "piros");
+$eredmeny = array_unique($bemenet);
print_r($eredmeny);
+?>
]]>
</programlisting>
<para>
- A következõt írja ki: (PHP 4.0.6)
- <screen>
+ A következõt írja ki:
+ </para>
+ <screen>
<![CDATA[
Array
(
- [b] => zöld
+ [a] => zöld
+ [0] => piros
[1] => kék
- [2] => piros
)
]]>
- </screen>
- </para>
+ </screen>
</example>
</para>
<para>
@@ -70,24 +65,24 @@
<title><function>array_unique</function> és a típusok
kapcsolata</title>
<programlisting role="php">
<![CDATA[
-$bemenet = array (4,"4","3",4,3,"3");
-$eredmeny = array_unique ($bemenet);
+<?php
+$bemenet = array(4, "4", "3", 4, 3, "3");
+$eredmeny = array_unique($bemenet);
var_dump($eredmeny);
+?>
]]>
</programlisting>
<para>
- A következõt írja ki: (PHP 4.0.6)
- <screen>
+ A következõt írja ki:
+ </para>
+ <screen>
<![CDATA[
array(2) {
- [3]=>
- int(4)
- [4]=>
- int(3)
+ [0] => int(4)
+ [2] => string(1) "3"
}
]]>
- </screen>
- </para>
+ </screen>
</example>
</para>
</refsect1>