cvs: phpdoc /en/reference/array/functions array-chunk.xml
| From: | Hadar Porat | Date: | Fri, 01 Nov 2002 13:06:07 +0000 |
| Subject: | cvs: phpdoc /en/reference/array/functions array-chunk.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969349391@lists.php.net to get a copy of this message | ||
hadar_p Fri Nov 1 08:06:07 2002 EDT
Modified files:
/phpdoc/en/reference/array/functions array-chunk.xml
Log:
First version
Index: phpdoc/en/reference/array/functions/array-chunk.xml
diff -u phpdoc/en/reference/array/functions/array-chunk.xml:1.4
phpdoc/en/reference/array/functions/array-chunk.xml:1.5
--- phpdoc/en/reference/array/functions/array-chunk.xml:1.4 Sun May 12 04:19:28 2002
+++ phpdoc/en/reference/array/functions/array-chunk.xml Fri Nov 1 08:06:07 2002
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.array-chunk">
<refnamediv>
<refname>array_chunk</refname>
- <refpurpose>Split an array into chunks</refpurpose>
+ <refpurpose>îôöì îòøê ìçì÷éí</refpurpose>
</refnamediv>
<refsect1>
- <title>Description</title>
+ <title>úéàåø</title>
<methodsynopsis>
<type>array</type><methodname>array_chunk</methodname>
<methodparam><type>array</type><parameter>input</parameter></methodparam>
@@ -15,22 +15,20 @@
<methodparam
choice="opt"><type>bool</type><parameter>preserve_keys</parameter></methodparam>
</methodsynopsis>
<para>
- <function>array_chunk</function> splits the array into
- several arrays with <parameter>size</parameter> values
- in them. You may also have an array with less values
- at the end. You get the arrays as members of a
- multidimensional array indexed with numbers starting
- from zero.
+ <function>array_chunk</function> îôöì àú äîòøê ìîñôø
+ îòøëéí áâåãì <parameter>size</parameter>. àúä âí éëåì
+ ìéöåø îòøê òí îñôø ÷èï éåúø ùì òøëéí áñåó. àúä î÷áì
+ àú äîòøëéí ëàéáøéí áîòøê ãå-îîãé áòì àéðã÷ñéí
äîúçéìéí
+ î- 0.
</para>
<para>
- By setting the optional <parameter>preserve_keys</parameter>
- parameter to &true;, you can force PHP to preserve the original
- keys from the input array. If you specify &false; new number
- indices will be used in each resulting array with
- indices starting from zero. The default is &false;.
+ òì éãé äâãøú äôøîèø äàåôöéåðìé
<parameter>preserve_keys</parameter>
+ ì- &true;, àúä éëåì ìàìõ àú PHP ìùîåø òì äàéðã÷ñéí
+ äî÷åøééí ùì äîùúðä ùäåëðñ. àí àúä îöééï &false;,
àéðã÷ñéí
+ çãùéí äîúçéìéí îàôñ éåôéòå. áøéøú äîçãì äéà &false;.
</para>
<example>
- <title><function>array_chunk</function> example</title>
+ <title>ãåâîà ùì <function>array_chunk</function></title>
<programlisting role="php">
<![CDATA[
$input_array = array('a', 'b', 'c', 'd', 'e');
@@ -39,7 +37,7 @@
]]>
</programlisting>
<para>
- The printout of the above program will be:
+ äôìè ùì äúåëðéú ùîòì úäéä:
<screen>
<![CDATA[
Array