cvs: phpdoc-ar /language types.xml

From: Date: Sat, 06 Sep 2003 17:26:34 +0000
Subject: cvs: phpdoc-ar /language types.xml
Groups: php.doc.ar 
Request: Send a blank email to doc-ar+get-570@lists.php.net to get a copy of this message
hafid Sat Sep 6 13:26:34 2003 EDT Modified files: /phpdoc-ar/language types.xml Log: 5th Partial Translation. Still EN-1.123 compliant.

Index: phpdoc-ar/language/types.xml diff -u phpdoc-ar/language/types.xml:1.4 phpdoc-ar/language/types.xml:1.5 --- phpdoc-ar/language/types.xml:1.4 Fri Sep 5 11:28:10 2003 +++ phpdoc-ar/language/types.xml Sat Sep 6 13:26:34 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-6"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- EN-Revision: 1.123 Maintainer: hafid Status: working --> <chapter id="language.types"> <title>ÇäÃæèÇÙ</title> @@ -1087,24 +1087,24 @@ </para> </sect2> <sect2 id="language.types.string.conversion"> - <title>String conversion to numbers</title> + <title>ÊÍèêä ÓäÓäÉ æÕêñÉ Åäé ÃÙÏÇÏ</title> <simpara> - When a string is evaluated as a numeric value, the resulting - value and type are determined as follows. + ÙæÏ Êâêêå ÓäÓäÉ æÕêñÉ Ùäé ÃæçÇ âêåÉ ÙÏÏêñɬ áÅæñ ÇäâêåÉ èÇäæñèÙ ÇäæñÇÊÌêæ + êïâÑÑÇæ ãÇäÊÇäê: </simpara> <simpara> - The string will evaluate as a <type>float</type> if it contains any of the - characters '.', 'e', or 'E'. Otherwise, it will evaluate as an - integer. + ÇäÓäÓäÉ ÇäæñÕêñÉ ÓÊïâîêñîå Ùäé ÃæçÇ <type>ÙÇÆå</type> ÅÐÇ ÊÖåæÊ ÃêÇ åæ + ÇäÍÑèá '.'¬ 'e' Ãè 'E'. áê ÚêÑ Ðä㬠ÓÊïâîêñîå Ùäé ÃæçÇ + ÙÏÏ ÕÍêÍ. </simpara> <para> - The value is given by the initial portion of the string. If the - string starts with valid numeric data, this will be the value - used. Otherwise, the value will be 0 (zero). Valid numeric data - is an optional sign, followed by one or more digits (optionally - containing a decimal point), followed by an optional - exponent. The exponent is an 'e' or 'E' followed by one or more - digits. + ÊïÙò×îé ÇäâêåÉ åæ âÈä ÇäÌÒÁ ÇäÃèäêñ åæ ÇäÓñäÓäÉ ÇäæñÕêñÉ. ÅÐÇ ÈÏÃÊ + ÇäÓñäÓäÉ ÇäæñÕêñÉ ÈÈêÇæÇÊ ÙÏÏêñÉ ÕÇäÍÉ áÅæñ çÐç ÇäâêåÉ ÇäÊê + ÓÊïÓÊÎÏå. áê ÚêÑ Ðä㬠áÅæñ ÇäâêåÉ ÓÊãèæ 0 (ÕáÑ). ÊÊåËä ÇäÈêÇæÇÊ ÇäÙÏÏêñÉ ÇäÕñÇäÍÉ + áê ÑåÒ ÅÎÊêÇÑêñ åÊÈèÙ ÈÑâå èÇÍÏ Ãè ÙÏÉ ÃÑâÇå (ÊÊÖåæ + ÇÎÊêÇÑêÇë æâ×É ÙÔÑêñÉ) åÊÈèÙ ÈÃÓ + ÅÎÊêÇÑêñ. êÊåËä ÇäÃÓ áê 'e' Ãè 'E' åÊÈèÙ ÈÑâå èÇÍÏ Ãè ÙÏÉ + ÃÑâÇå. </para> <informalexample> <programlisting role="php"><![CDATA[ @@ -1121,13 +1121,13 @@ ]]></programlisting> </informalexample> <simpara> - For more information on this conversion, see the Unix manual page - for strtod(3). + äåÒêÏ åæ ÇäåÙäèåÇÊ ÈÎÕèÕ çÐÇ ÇäÊÍèêä¬ ÇÓÊÙÑÖ ÕáÍÉ Ïäêä Unix + áêåÇ êÊÙäâ Èà strtod(3). </simpara> <para> - If you would like to test any of the examples in this section, - you can cut and paste the examples and insert the following line - to see for yourself what's going on: + ÅÐÇ ãæÊ ÊÑÚÈ áê ÇÎÊÈÇÑ Çê åæ ÇäÃåËäÉ áê çÐÇ ÇäáÕä¬ + êåãæã âÕ èäÕâ ÇäÃåËäÉ èÅÏÑÇÌ ÇäÓñ×Ñ ÇäÊñÇäêñ + äÑÄêÉ åÇ êÌÑê ÈæáÓã: <informalexample> <programlisting role="php"><![CDATA[ <?php @@ -1137,45 +1137,45 @@ </informalexample> </para> <para> - Do not expect to get the code of one character by converting it - to integer (as you would do in C for example). Use the functions - <function>ord</function> and <function>chr</function> to convert - between charcodes and characters. + äÇ ÊÊèâÙ ÇäÍÕèä Ùäé ÔêáÑÉ ÍÑá åÇ åæ ÎäÇä ÊÍèêäç + Åäé ÙÏÏ ÕÍêÍ (åËäåÇ ÊáÙä áê C Ùäé ÓÈêä ÇäåËÇä). ÇÓÊÎÏå ÇäÏèÇä + <function>ord</function> è <function>chr</function> ääÊÍèêä + Èêæ ÇäÔñêáÑÇÊ ÇäÍÑáêñÉ èÇäÍÑèá. </para> </sect2> </sect1> <!-- end string --> <sect1 id="language.types.array"> - <title>Arrays</title> + <title>ÇäåÕáèáÇÊ</title> <para> - An array in PHP is actually an ordered map. A map is a type that - maps <emphasis>values</emphasis> to <emphasis>keys</emphasis>. - This type is optimized in several ways, - so you can use it as a real array, or a list (vector), - hashtable (which is an implementation of a map), - dictionary, collection, - stack, queue and probably more. Because you can have another - PHP array as a value, you can also quite easily simulate - trees. + ÊÙæê åÕáèáÉ áê PHP ÍÇäêÇ ÎÑê×É åïÑîÊñîÈîÉ. ÇäÎÑê×É çê æèÙ + êçêãä <emphasis>Çäâêå</emphasis> ãà <emphasis>åáÇÊêÍ</emphasis>. + çÐÇ ÇäæèÙ êÊå Êâèêåç ÈÙÏÉ ×Ñâ + ÈÍêË êåãæã ÇÓÊÎÏÇåç èãÃæç åÕáèáÉ ÍâêâêñÉ Ãè äÇÆÍÉ (åïèîÌðç)¬ + ÌÏèä ÊÌÒÆÉ (çè ÊæáêÐ äÎÑê×É)¬ + âÇåèÓ¬ ÊÔãêäɬ + ÑÕᬠäÇÆÍÉ ÅæÊØÇÑ èÑÈåÇ ÇäåÒêÏ. æØÑÇ äÃæñç ÈÅåãÇæã ÇäÍÕèä Ùäé åÕáèáÉ + PHP ÃÎÑé ãâêåɬ áÅæñç êåãæã èÈÓçèäÉ åÍÇãÇÉ + ÇäÃÔÌÇÑ. </para> <para> - Explanation of those data structures is beyond the scope of this - manual, but you'll find at least one example for each of them. - For more information we refer you to external literature about - this broad topic. + Åæ ÔÑÍ çÐç ÇäÈæé ÇäÈêÇæêñÉ ÈÙêÏ Ùæ åÑåé çÐÇ + ÇäÏñäêä¬ äãæã ÓÊÌÏ Ùäé ÇäÃâä åËÇäÇ èÇÍÏÇë Ùæ ãä åæçÇ. + äåÒêÏ åæ ÇäåÙäèåÇʬ æÍêäã Åäé ÃÏÈêÇÊ ÎÇÑÌêñÉ ÈÎÕèÕ + çÐÇ ÇäåèÖèÙ ÇäèÇÓÙ. </para> <sect2 id="language.types.array.syntax"> - <title>Syntax</title> + <title>ÇäÕñêÚÉ</title> <sect3 id="language.types.array.syntax.array-func"> - <title>Specifying with <function>array</function> + <title>ÇäÊÍÏêÏ ÈèÇÓ×É <function>åÕáèáÉ</function> </title> <para> - An <type>array</type> can be created by the <function>array</function> - language-construct. It takes a certain number of comma-separated + êåãæ ÅæÔÇÁ <type>åÕáèáÉ</type> ÈèÇÓ×É ÇäÈÇæê ÇääÚèêñ <function>array</function>. + êÃÎÐ Ðäã ÙÏÏÇ åÙêæÇ åæ ÇäÃÒèÇÌ ÇäåáÕèäÉ ÈáèÇÕä åæ <literal> <replaceable>key</replaceable> =&gt; <replaceable>value</replaceable> </literal> - pairs. + . </para> <para> <synopsis> @@ -1184,8 +1184,8 @@ <replaceable>value</replaceable> , ... ) -// <replaceable>key</replaceable> may be an <type>integer</type> or <type>string</type> -// <replaceable>value</replaceable> may be any value +// <replaceable>key</replaceable> êåãæ Ãæ Êãèæ <type>integer</type> Ãè <type>string</type> +// <replaceable>value</replaceable> êåãæ Ãæ ÊÔêÑ Åäé ÃêÉ âêåÉ </synopsis> </para> <para> @@ -1201,18 +1201,18 @@ </informalexample> </para> <para> - A <varname>key</varname> may be either an - <literal>integer</literal> or a <type>string</type>. If a key is - the standard representation of an <type>integer</type>, it will - be interpreted as such (i.e. <literal>"8"</literal> will be - interpreted as <literal>8</literal>, while - <literal>"08"</literal> will be interpreted as - <literal>"08"</literal>). There are no different indexed and - associative array types in PHP; there is only one array type, - which can both contain integer and string indices. + êåãæ äà <varname>key</varname> Ãæ Êãèæ ÅåÇ + <literal>integer</literal> Ãè <type>string</type>. ÅÐÇ ãÇæ ÇäåáÊÇÍ çè + ÇäÊåËêä ÇäåÙêÇÑêñ äà <type>integer</type>¬ áÅæñç + ÓêïÊÑÌîå Ùäé Ðäã ÇäæÍè (Ãê Ãæñ <literal>"8"</literal> + ÓÊïÊÑÌå Ùäé Ôãä <literal>8</literal> áê Íêæ Ãæ + <literal>"08"</literal> ÓÊïÊÑÌå Ùäé Ôãä + <literal>"08"</literal>). äêÓÊ çæÇã ÃæèÇÙ åÎÊäáÉ åæ ÇäåÕáèáÇÊ ÇäåïáîçòÑîÓîÉ èÇäåÕáèáÇÊ + ÇäÊñÔÇÑãêñÉ áê PHP» çæÇã æèÙ èÇÍÏ áâ× åæ ÇäåÕáèáÇÊ + êåãæç ÇÍÊèÇÁ áçÇÑÓ ÃÙÏÇÏ ÕÍêÍÉ èÓäÇÓä æÕêñÉ. </para> <para> - A value can be of any PHP type. + êåãæ äâêåÉ åÇ Ãæ Êãèæ åæ Ãê æèÙ áê PHP. <informalexample> <programlisting role="php"><![CDATA[ <?php @@ -1226,17 +1226,17 @@ </informalexample> </para> <para> - If you do not specify a key for a given value, then the maximum - of the integer indices is taken, and the new key will be that - maximum value + 1. If you specify a key that already has a value - assigned to it, that value will be overwritten. + ÅÐÇ äå Êâå ÈÊÍÏêÏ åáÊÇÍ äâêåÉ åÙ×Çɬ áÅæ ÃâÕé + áçÇÑÓ ÇäÃÙÏÇÏ ÇäÕÍêÍÉ çè ÇäÐê êÄÎÐ èÇäåáÊÇÍ ÇäÌÏêÏ Óêãèæ Êäã + ÇäâêåÉ ÇäâÕèé + 1. ÅÐÇ ÍÏÏÊ åáÊÇÍÇ êÊèáÑ åÓÈâÇ Ùäé âêåÉ + åÙêæÉ äÍÓÇÈç¬ áÅæñ çÐç ÇäâêåÉ ÓêÊå ÓÍâçÇ. <informalexample> <programlisting role="php"><![CDATA[ <?php -// This array is the same as ... +// çÐç ÇäåÕáèáÉ çê æáÓçÇ åËä ... array(5 => 43, 32, 56, "b" => 12); -// ...this array +// ...çÐç ÇäåÕáèáÉ array(5 => 43, 6 => 32, 7 => 56, "b" => 12); ?> ]]></programlisting> @@ -1355,6 +1355,7 @@ $array = array_values($array); $array[] = 7; print_r($array); + ?> ]]></programlisting> <para>
« previous php.doc.ar (#570) next »