1
0
mirror of https://github.com/php/doc-pl.git synced 2026-04-29 01:33:16 +02:00
Files
archived-doc-pl/reference/array/functions/shuffle.xml
T
Leszek Krupinski 03d0f70798 Standarized 'see also' translation
git-svn-id: https://svn.php.net/repository/phpdoc/pl/trunk@82551 c90b9560-bf6c-de11-be94-00142212c4b1
2002-05-17 13:50:52 +00:00

60 lines
1.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.4 Maintainer: leszek Status: ready -->
<!-- $Revision: 1.4 $ -->
<refentry id="function.shuffle">
<refnamediv>
<refname>shuffle</refname>
<refpurpose>Przetasuj tablicê</refpurpose>
</refnamediv>
<refsect1>
<title>Opis</title>
<methodsynopsis>
<type>void</type><methodname>shuffle</methodname>
<methodparam><type>array</type><parameter>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.
<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)) {
echo "$liczba ";
}
]]>
</programlisting>
</example>
</para>
<para>
Patrz tak¿e: <function>arsort</function>, <function>asort</function>,
<function>ksort</function>, <function>rsort</function>,
<function>sort</function> i <function>usort</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->