cvs: phpdoc-sk /reference/array/functions shuffle.xml
[email protected] ("Robert Novotny")
| Newsgroups | php.doc.sk |
|---|---|
| Message-ID | <cvsnovotnyr1043427572@cvsserver> |
novotnyr Fri Jan 24 11:59:32 2003 EDT
Added files:
/phpdoc-sk/reference/array/functions shuffle.xml
Log:
new one
Index: phpdoc-sk/reference/array/functions/shuffle.xml
+++ phpdoc-sk/reference/array/functions/shuffle.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.4 Maintainer: novotnyr Status: ready -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.shuffle">
<refnamediv>
<refname>shuffle</refname>
<refpurpose>Zamie¹a pole</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>void</type><methodname>shuffle</methodname>
<methodparam><type>array</type><parameter>array</parameter></methodparam>
</methodsynopsis>
<para>
Táto funkcia zamie¹a (náhodne zmení poradie prvkov) pole.
Pred pou¾itím tejto funkcie musíte zavola» <function>srand</function>
na inicializáciu náhodného generátora.
<example>
<title>Príklad na <function>shuffle</function></title>
<programlisting role="php">
<![CDATA[
$numbers = range (1,20);
srand ((float)microtime()*1000000);
shuffle ($numbers);
while (list (, $number) = each ($numbers)) {
echo "$number ";
}
]]>
</programlisting>
</example>
</para>
<para>
Pozri tie¾ <function>arsort</function>, <function>asort</function>,
<function>ksort</function>, <function>rsort</function>,
<function>sort</function>, a <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
-->