svn: /phpdoc/ru/trunk/reference/array/functions/ shuffle.xml

From: Date: Fri, 04 Feb 2011 10:33:46 +0000
Subject: svn: /phpdoc/ru/trunk/reference/array/functions/ shuffle.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-1349@lists.php.net to get a copy of this message
shein Fri, 04 Feb 2011 10:33:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308007 Log: Updated translation. Changed paths: U phpdoc/ru/trunk/reference/array/functions/shuffle.xml Modified: phpdoc/ru/trunk/reference/array/functions/shuffle.xml =================================================================== --- phpdoc/ru/trunk/reference/array/functions/shuffle.xml 2011-02-04 10:31:41 UTC (rev 308006) +++ phpdoc/ru/trunk/reference/array/functions/shuffle.xml 2011-02-04 10:33:46 UTC (rev 308007) @@ -1,46 +1,93 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: n/a Maintainer: sveta Status: ready --> +<!-- EN-Revision: 297028 Maintainer: shein Status: ready --> +<!-- Reviewed: no --> <!-- $Revision$ --> -<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> - <refentry xml:id="function.shuffle" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>shuffle</refname> - <refpurpose>Перемешать массив</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>bool</type><methodname>shuffle</methodname> - <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> - </methodsynopsis> - <para> - Эта функция перемещает элементы массива в случайном порядке. - <example> - <title>Пример использования <function>shuffle</function></title> - <programlisting role="php"> +<refentry xml:id="function.shuffle" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>shuffle</refname> + <refpurpose>Перемешивает массив</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>shuffle</methodname> + <methodparam><type>array</type><parameter role="reference">array</parameter></methodparam> + </methodsynopsis> + <para> + Эта функция перемешивает элементы массива в случайном порядке. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>array</parameter></term> + <listitem> + <para> + Массив. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Пример использования <function>shuffle</function></title> + <programlisting role="php"> <![CDATA[ <?php $numbers = range(1, 20); -srand((float)microtime() * 1000000); shuffle($numbers); -while (list(, $number) = each($numbers)) { +foreach ($numbers as $number) { echo "$number "; } ?> ]]> - </programlisting> - </example> - </para> - - &note.randomseed; - - <para> - См. также <function>arsort</function>, <function>asort</function>, - <function>ksort</function>, <function>rsort</function>, - <function>sort</function> и <function>usort</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + &changelog.randomseed; + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + &note.no-key-association; + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member>&seealso.array.sorting;</member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -53,7 +100,7 @@ sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil -sgml-default-dtd-file:"../~/.phpdoc/manual.ced" +sgml-default-dtd-file:"~/.phpdoc/manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil

« previous php.doc.ru (#1349) next »