First version

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@102217 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hadar Porat 2002-11-01 13:06:44 +00:00
parent f794a0e3b8
commit 58b220b7b7
3 changed files with 37 additions and 37 deletions

View file

@ -1,31 +1,33 @@
<?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.113 -->
<refentry id="function.array-change-key-case">
<refnamediv>
<refname>array_change_key_case</refname>
<refpurpose>Returns an array with all string keys lowercased or uppercased</refpurpose>
<refpurpose>מחזיר מערך שכל האינדקסים המוצגים כמחרוזות יהיו באותיות קטנות
או באותיות גדולות.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<title>תיאור</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> changes the
keys in the <parameter>input</parameter> array to
<function>array_change_key_case</function> משנה את
האינדקסים במערך <parameter>input</parameter> לאותיות
קטנות או לאותיות גדולות. השינוי תלוי בפרמטר האחרון
האופציונלי <parameter>case</parameter>. אתה יכול
למסור שני משתנים קבועים שם:
be all lowercase or uppercase. The change depends
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.
on the last optional <constant>CASE_UPPER</constant> ו-
<constant>CASE_LOWER</constant>. ברירת המחדל היא
<constant>CASE_LOWER</constant>. הפונקציה תשאיר
אינדקסים מספריים כפי שהם.
</para>
<example>
<title><function>array_change_key_case</function> example</title>
<title>דוגמא של <function>array_change_key_case</function></title>
<programlisting role="php">
<![CDATA[
$input_array = array("FirSt" => 1, "SecOnd" => 4);
@ -33,7 +35,7 @@ print_r(array_change_key_case($input_array, CASE_UPPER));
]]>
</programlisting>
<para>
The printout of the above program will be:
הפלט של התוכנית שמעל תהיה:
<screen>
<![CDATA[
Array

View file

@ -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 @@ print_r(array_chunk($input_array, 2, TRUE));
]]>
</programlisting>
<para>
The printout of the above program will be:
הפלט של התוכנית שמעל תהיה:
<screen>
<![CDATA[
Array

View file

@ -1,25 +1,25 @@
<?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-count-values">
<refnamediv>
<refname>array_count_values</refname>
<refpurpose>Counts all the values of an array</refpurpose>
<refpurpose>ñåôø àú ëì äòøëéí ùì îòøê</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<title>úéàåø</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> returns an array using
the values of the <parameter>input</parameter> array as keys and
their frequency in <parameter>input</parameter> as values.
<function>array_count_values</function> îçæéø îòøê áùéîåù
äòøëéí ùì îòøê <parameter>input</parameter> ëàéðã÷ñéí åäúãéøåú
ùìäí ëòøëéí.
</para>
<para>
<example>
<title><function>array_count_values</function> example</title>
<title>ãåâîà ùì <function>array_count_values</function></title>
<programlisting role="php">
<![CDATA[
$array = array (1, "hello", 1, "world", "hello");
@ -27,7 +27,7 @@ print_r(array_count_values ($array));
]]>
</programlisting>
<para>
The printout of the above program will be:
äôìè ùì äúåëðéú ùîòì úäéä:
<screen>
<![CDATA[
Array