tal             Fri Mar 22 09:20:48 2002 EDT

  Modified files:              
    /phpdoc/he/language types.xml 
  Log:
  finished boolean
  
Index: phpdoc/he/language/types.xml
diff -u phpdoc/he/language/types.xml:1.3 phpdoc/he/language/types.xml:1.4
--- phpdoc/he/language/types.xml:1.3    Fri Mar 22 03:53:06 2002
+++ phpdoc/he/language/types.xml        Fri Mar 22 09:20:48 2002
@@ -129,25 +129,24 @@
    </sect1>
    
    <sect1 id="language.types.boolean">
-    <title>Booleans</title>
+    <title>������ ��������</title>
     
     <simpara>
-     This is the easiest type. A <type>boolean</type> expresses a 
-     truth value. It can be either &true; or 
-     &false;. 
+     ���� �������� ��� ���� ����� �����. ��� ���� ��� �� ��� ��
+     ���. ���� ��� ���� ����� &true; �� &false;.
     </simpara>
 
     <note>
      <simpara>
-      The boolean type was introduced in PHP 4.
+      ���� �������� ���� ������� �-PHP 4.
      </simpara>
     </note>
 
     <sect2 id="language.types.boolean.syntax">
-     <title>Syntax</title>
+     <title>�����</title>
      <para>
-      To specify a boolean literal, use either the keyword &true; 
-      or &false;. Both are case-insensitive.
+      �� ��� ������ ����� �������, �� ������ ���� ������ �����
+      &true; �� &false;, ��� ����� ����� �� case-insensitive, �����, �� ������ ����� 
+����.
       <!-- technically they are just constants -->
       <informalexample>
        <programlisting role="php">
@@ -158,11 +157,8 @@
       </informalexample>
      </para>
      <para>
-      Usually you 
-      use some kind of <link linkend="language.operators">operator</link>
-      which returns a <type>boolean</type> value, and then pass it 
-      on to a <link linkend="control-structures">control
-      structure</link>.
+      ���� ��� ������� �<link linkend="language.operators">�������</link> ������ ���
+      <type>�������</type> �������� ���� �<link linkend="control-structures">���� 
+����</link>.
       <informalexample>
        <programlisting role="php">
 <![CDATA[
@@ -187,63 +183,51 @@
     </sect2>
 
     <sect2 id="language.types.boolean.casting">
-     <title>Converting to boolean</title>
+     <title>����� ����� ��������</title>
       <simpara>
-       To explicitly convert a value to <type>boolean</type>, use either
-       the <literal>(bool)</literal> or the <literal>(boolean)</literal> cast.
-       However, in most cases you do not need to use the cast, since a value
-       will be automatically converted if an operator, function or 
-       control structure requires a <type>boolean</type> argument.
+       ��� ����� ��� �� ����� ������ �<type>�������</type>, ��  ������
+       ����� <literal>(bool)</literal> �� ����� <literal>(boolean</literal>.
+       �� �� �� ��, ���� ������ ��� ���� ����� �� ������ �����, ���� �����
+       ���� �������� �� �������, ������� �� ���� ���� ������ ������� 
+<type>�������</type>.
       </simpara>
       <simpara>
-       See also <link linkend="language.types.type-juggling">Type Juggling</link>.
+       ��� �� <link linkend="language.types.type-juggling">���� ��� �����</link>.
       </simpara>
       
       <para>
-       When converting to <type>boolean</type>, the following values 
-       are considered &false;:
+       ������� ��� �<type>�������</type>, ������ ����� ������ �-&false;:
   
        <itemizedlist>
         <listitem>
-         <simpara>the <link linkend="language.types.boolean">boolean</link> 
-          &false;<!-- duh... --></simpara>
+          <simpara>���� �<link linkend="language.types.boolean">�������</link> 
+&false;</simpara> 
+          <--!duh...-->
         </listitem>
         <listitem>
-         <simpara>the <link linkend="language.types.integer">integer</link
-         > 0 (zero) </simpara>
+         �<link linkend="language.types.integer">���� ����</link> 0 (���) </simpara>
         </listitem>
         <listitem>
-         <simpara>the <link linkend="language.types.float">float</link> 
-         0.0 (zero) </simpara>
+         <simpara>�<link linkend="language.types.float">���� ��� ����� ���</link> 0.0 
+(���)</simpara>
         </listitem>
         <listitem>
-         <simpara>the empty <link linkend="language.types.string"
-           >string</link>, and the <link linkend="language.types.string"
-           >string</link>
-           "0"</simpara>
+         <simpara><link linkend="language.types.string">������</link> ���� ��<link 
+linkend="language.types.string">������</link> "0"</simpara>
         </listitem>
         <listitem>
-         <simpara>an <link linkend="language.types.array">array</link> 
-         with zero elements</simpara>
+         <simpara><link linkend="language.types.array">����</link> ��� 
+�������</simpara>
         </listitem>
         <listitem>
-         <simpara>an <link linkend="language.types.object">object</link> 
-         with zero elements</simpara>
+         <simpara><link linkend="language.types.object">�������</link> ��� 
+�������</simpara>
         </listitem>
         <listitem>
-         <simpara>the special type <link linkend="language.types.null"
-           >NULL</link> (including unset variables)
+         ���� ������ <link linkend="language.types.null">NULL</link> (���� ������ ��� 
+������)
          </simpara>
         </listitem>
        </itemizedlist>
        
-       Every other value is considered &true; (including any 
-       <link linkend="language.types.resource">resource</link>).
+       �� ��� ��� ���� �-&true; (���� �� <link 
+linkend="language.types.resource">����</link>).
        <warning>
         <simpara>
-         <literal>-1</literal> is considered  
-         &true;, like any other non-zero (whether negative
-         or positive) number!
+         <literal>-1</literal> ���� �-&true;, ��� �� ���� (����� �� �����) ���� �� 
+���.
+        
         </simpara>
        </warning>
        <!-- TODO: add a few examples, for the people only looking at 


Reply via email to