cvs: phpdoc-pl /reference/array/functions shuffle.xml
| From: | Leszek Krupinski | Date: | Wed, 23 Feb 2005 01:08:11 +0000 |
| Subject: | cvs: phpdoc-pl /reference/array/functions shuffle.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-426@lists.php.net to get a copy of this message | ||
leszek Tue Feb 22 20:08:11 2005 EDT
Modified files:
/phpdoc-pl/reference/array/functions shuffle.xml
Log:
[leszek] - updated to 1.12
http://cvs.php.net/diff.php/phpdoc-pl/reference/array/functions/shuffle.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc-pl/reference/array/functions/shuffle.xml
diff -u phpdoc-pl/reference/array/functions/shuffle.xml:1.4
phpdoc-pl/reference/array/functions/shuffle.xml:1.5
--- phpdoc-pl/reference/array/functions/shuffle.xml:1.4 Fri May 17 09:50:48 2002
+++ phpdoc-pl/reference/array/functions/shuffle.xml Tue Feb 22 20:08:11 2005
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.4 Maintainer: leszek Status: ready -->
-<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.12 Maintainer: leszek Status: ready -->
+<!-- $Revision: 1.5 $ -->
<refentry id="function.shuffle">
<refnamediv>
<refname>shuffle</refname>
@@ -9,26 +9,28 @@
<refsect1>
<title>Opis</title>
<methodsynopsis>
- <type>void</type><methodname>shuffle</methodname>
-
<methodparam><type>array</type><parameter>tablica</parameter></methodparam>
+ <type>bool</type><methodname>shuffle</methodname>
+ <methodparam><type>array</type><parameter
role="reference">tablica</parameter></methodparam>
</methodsynopsis>
<para>
- Ta funkcja tasuje tablicê (losuje kolejno¶æ elementów w niej). Musisz
- u¿yæ <function>srand</function> aby przygotowaæ ziarno dla tej funkcji.
+ Ta funkcja tasuje tablicê (losuje kolejno¶æ elementów w niej).
<example>
<title>Przyk³ad u¿ycia <function>shuffle</function></title>
<programlisting role="php">
<![CDATA[
-$liczby = range (1,20);
-srand ((float)microtime()*1000000);
-shuffle ($liczby);
-while (list (, $liczba) = each ($liczby)) {
+<?php
+$liczby = range(1,20);
+srand((float)microtime()*1000000);
+shuffle($liczby);
+while (list(, $liczba) = each($liczby)) {
echo "$liczba ";
}
+?>
]]>
</programlisting>
</example>
</para>
+ ¬e.randomseed;
<para>
Patrz tak¿e: <function>arsort</function>, <function>asort</function>,
<function>ksort</function>, <function>rsort</function>,