cvs: phpdoc-hu /reference/array/functions shuffle.xml
| From: | Cece) Szabolcs | Date: | Thu, 30 Sep 2004 21:00:46 +0000 |
| Subject: | cvs: phpdoc-hu /reference/array/functions shuffle.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-1113@lists.php.net to get a copy of this message | ||
cece Thu Sep 30 17:00:46 2004 EDT
Modified files:
/phpdoc-hu/reference/array/functions shuffle.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/array/functions/shuffle.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc-hu/reference/array/functions/shuffle.xml
diff -u phpdoc-hu/reference/array/functions/shuffle.xml:1.3
phpdoc-hu/reference/array/functions/shuffle.xml:1.4
--- phpdoc-hu/reference/array/functions/shuffle.xml:1.3 Wed Aug 14 12:56:19 2002
+++ phpdoc-hu/reference/array/functions/shuffle.xml Thu Sep 30 17:00:45 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 'shuffle' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.4 Maintainer: gerzson Status: ready -->
+<!-- EN-Revision: 1.11 Maintainer: cece Status: ready -->
+<!-- CREDITS: gerzson -->
<!-- OLD-Revision: 1.173/EN.1.2 -->
<refentry id="function.shuffle">
<refnamediv>
@@ -11,33 +12,40 @@
<refsect1>
<title>Leírás</title>
<methodsynopsis>
- <type>void</type><methodname>shuffle</methodname>
-
<methodparam><type>array</type><parameter>array</parameter></methodparam>
+ <type>bool</type><methodname>shuffle</methodname>
+
<methodparam><type>array</type><parameter>&array</parameter></methodparam>
</methodsynopsis>
<para>
Ez a függvény véletlenszerûen összekeveri a tömb elemeit.
- Az <function>srand</function> függvényt meg kell hívni, hogy
- inicializálja a véletlenszám-generátort!
</para>
<para>
<example>
<title><function>shuffle</function> példa</title>
<programlisting role="php">
<![CDATA[
-$numbers = range (1,20);
-srand ((float)microtime()*1000000);
-shuffle ($numbers);
-while (list (, $number) = each ($numbers)) {
+<?php
+$numbers = range(1, 20);
+srand((float)microtime() * 1000000);
+shuffle($numbers);
+while (list(, $number) = each($numbers)) {
echo "$number ";
}
+?>
]]>
</programlisting>
</example>
</para>
+
+ ¬e.randomseed;
+
<para>
- Lásd még: <function>arsort</function>, <function>asort</function>,
- <function>ksort</function>, <function>rsort</function>,
- <function>sort</function> és <function>usort</function>!
+ Lásd még:
+ <function>arsort</function>,
+ <function>asort</function>,
+ <function>ksort</function>,
+ <function>rsort</function>,
+ <function>sort</function> és
+ <function>usort</function>.
</para>
</refsect1>
</refentry>