cvs: phpdoc /en/reference/array/functions array-change-key-case.xml array-chunk.xml array-count-values.xml
| From: | Derick Rethans | Date: | Fri, 01 Nov 2002 18:35:26 +0000 |
| Subject: | cvs: phpdoc /en/reference/array/functions array-change-key-case.xml array-chunk.xml array-count-values.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969349398@lists.php.net to get a copy of this message | ||
derick Fri Nov 1 13:35:26 2002 EDT
Modified files:
/phpdoc/en/reference/array/functions array-change-key-case.xml
array-chunk.xml
array-count-values.xml
Log:
- Reverted Hebrew texts in the English tree
Index: phpdoc/en/reference/array/functions/array-change-key-case.xml
diff -u phpdoc/en/reference/array/functions/array-change-key-case.xml:1.5
phpdoc/en/reference/array/functions/array-change-key-case.xml:1.6
--- phpdoc/en/reference/array/functions/array-change-key-case.xml:1.5 Fri Nov 1 08:05:53 2002
+++ phpdoc/en/reference/array/functions/array-change-key-case.xml Fri Nov 1 13:35:26 2002
@@ -1,33 +1,31 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.113 -->
<refentry id="function.array-change-key-case">
<refnamediv>
<refname>array_change_key_case</refname>
- <refpurpose>îçæéø îòøê ùëì äàéðã÷ñéí äîåöâéí ëîçøåæåú
éäéå áàåúéåú ÷èðåú
- àå áàåúéåú âãåìåú.</refpurpose>
+ <refpurpose>Returns an array with all string keys lowercased or
uppercased</refpurpose>
</refnamediv>
<refsect1>
- <title>úéàåø</title>
+ <title>Description</title>
<methodsynopsis>
<type>array</type><methodname>array_change_key_case</methodname>
<methodparam><type>array</type><parameter>input</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>case</parameter></methodparam>
</methodsynopsis>
<para>
- <function>array_change_key_case</function> îùðä àú
- äàéðã÷ñéí áîòøê <parameter>input</parameter> ìàåúéåú
- ÷èðåú àå ìàåúéåú âãåìåú. äùéðåé úìåé áôøîèø äàçøåï
- äàåôöéåðìé <parameter>case</parameter>. àúä éëåì
- ìîñåø ùðé îùúðéí ÷áåòéí ùí:
+ <function>array_change_key_case</function> changes the
+ keys in the <parameter>input</parameter> array to
be all lowercase or uppercase. The change depends
- on the last optional <constant>CASE_UPPER</constant> å-
- <constant>CASE_LOWER</constant>. áøéøú äîçãì äéà
- <constant>CASE_LOWER</constant>. äôåð÷öéä úùàéø
- àéðã÷ñéí îñôøééí ëôé ùäí.
+ on the last optional <parameter>case</parameter>
+ parameter. You can pass two constants there,
+ <constant>CASE_UPPER</constant> and
+ <constant>CASE_LOWER</constant>. The default is
+ <constant>CASE_LOWER</constant>. The function will leave
+ number indices as is.
</para>
<example>
- <title>ãåâîà ùì
<function>array_change_key_case</function></title>
+ <title><function>array_change_key_case</function> example</title>
<programlisting role="php">
<![CDATA[
$input_array = array("FirSt" => 1, "SecOnd" => 4);
@@ -35,7 +33,7 @@
]]>
</programlisting>
<para>
- äôìè ùì äúåëðéú ùîòì úäéä:
+ The printout of the above program will be:
<screen>
<![CDATA[
Array
Index: phpdoc/en/reference/array/functions/array-chunk.xml
diff -u phpdoc/en/reference/array/functions/array-chunk.xml:1.5
phpdoc/en/reference/array/functions/array-chunk.xml:1.6
--- phpdoc/en/reference/array/functions/array-chunk.xml:1.5 Fri Nov 1 08:06:07 2002
+++ phpdoc/en/reference/array/functions/array-chunk.xml Fri Nov 1 13:35:26 2002
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.array-chunk">
<refnamediv>
<refname>array_chunk</refname>
- <refpurpose>îôöì îòøê ìçì÷éí</refpurpose>
+ <refpurpose>Split an array into chunks</refpurpose>
</refnamediv>
<refsect1>
- <title>úéàåø</title>
+ <title>Description</title>
<methodsynopsis>
<type>array</type><methodname>array_chunk</methodname>
<methodparam><type>array</type><parameter>input</parameter></methodparam>
@@ -15,20 +15,22 @@
<methodparam
choice="opt"><type>bool</type><parameter>preserve_keys</parameter></methodparam>
</methodsynopsis>
<para>
- <function>array_chunk</function> îôöì àú äîòøê ìîñôø
- îòøëéí áâåãì <parameter>size</parameter>. àúä âí éëåì
- ìéöåø îòøê òí îñôø ÷èï éåúø ùì òøëéí áñåó. àúä î÷áì
- àú äîòøëéí ëàéáøéí áîòøê ãå-îîãé áòì àéðã÷ñéí
äîúçéìéí
- î- 0.
+ <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.
</para>
<para>
- òì éãé äâãøú äôøîèø äàåôöéåðìé
<parameter>preserve_keys</parameter>
- ì- &true;, àúä éëåì ìàìõ àú PHP ìùîåø òì äàéðã÷ñéí
- äî÷åøééí ùì äîùúðä ùäåëðñ. àí àúä îöééï &false;,
àéðã÷ñéí
- çãùéí äîúçéìéí îàôñ éåôéòå. áøéøú äîçãì äéà &false;.
+ 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;.
</para>
<example>
- <title>ãåâîà ùì <function>array_chunk</function></title>
+ <title><function>array_chunk</function> example</title>
<programlisting role="php">
<![CDATA[
$input_array = array('a', 'b', 'c', 'd', 'e');
@@ -37,7 +39,7 @@
]]>
</programlisting>
<para>
- äôìè ùì äúåëðéú ùîòì úäéä:
+ The printout of the above program will be:
<screen>
<![CDATA[
Array
Index: phpdoc/en/reference/array/functions/array-count-values.xml
diff -u phpdoc/en/reference/array/functions/array-count-values.xml:1.5
phpdoc/en/reference/array/functions/array-count-values.xml:1.6
--- phpdoc/en/reference/array/functions/array-count-values.xml:1.5 Fri Nov 1 08:06:44 2002
+++ phpdoc/en/reference/array/functions/array-count-values.xml Fri Nov 1 13:35:26 2002
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.array-count-values">
<refnamediv>
<refname>array_count_values</refname>
- <refpurpose>ñåôø àú ëì äòøëéí ùì îòøê</refpurpose>
+ <refpurpose>Counts all the values of an array</refpurpose>
</refnamediv>
<refsect1>
- <title>úéàåø</title>
+ <title>Description</title>
<methodsynopsis>
<type>array</type><methodname>array_count_values</methodname>
<methodparam><type>array</type><parameter>input</parameter></methodparam>
</methodsynopsis>
<para>
- <function>array_count_values</function> îçæéø îòøê áùéîåù
- äòøëéí ùì îòøê <parameter>input</parameter> ëàéðã÷ñéí
åäúãéøåú
- ùìäí ëòøëéí.
+ <function>array_count_values</function> returns an array using
+ the values of the <parameter>input</parameter> array as keys and
+ their frequency in <parameter>input</parameter> as values.
</para>
<para>
<example>
- <title>ãåâîà ùì
<function>array_count_values</function></title>
+ <title><function>array_count_values</function> example</title>
<programlisting role="php">
<![CDATA[
$array = array (1, "hello", 1, "world", "hello");
@@ -27,7 +27,7 @@
]]>
</programlisting>
<para>
- äôìè ùì äúåëðéú ùîòì úäéä:
+ The printout of the above program will be:
<screen>
<![CDATA[
Array