visualmind              Mon Mar 25 13:09:48 2002 EDT

  Added files:                 
    /phpdoc/ar/language basic-syntax.xml constants.xml 
  Log:
  Translated to Arabic
  

Index: phpdoc/ar/language/basic-syntax.xml
+++ phpdoc/ar/language/basic-syntax.xml
<?xml version="1.0" encoding="iso-8859-6"?>
<!-- $EN-Revision: 1.26 $ -->
 <chapter id="language.basic-syntax">
  <title>������ ��������</title>

   <!--
   
    NOTE:                             Last modified: 2001-05-16 13:00 GMT
    
    the language part is currently under heavy revision. Please do not
    not make any heavy (i.e. structural) modifications to this part 
    for a moment. 
    
    You'd also better not start any translation yet.
    
    Comments are always welcome at [EMAIL PROTECTED]
    
    Progress:
    
     intro : DOESN'T EXIST - yet?
             new chapter, with some introductionary remarks?
             Will be discussed on the ML soon.
     basic-syntax: 
             FINISHED
             except maybe moving the 'advanced escaping'
             to a better place?
             TODO: 
              - nada
     types : Being revised. Added all new types
             Boolean and Integer are more or less finished.
             The rest isn't.
             TODO: 
              - why is $foo[bar] bad syntax?
              - what's the difference between unset($bla) and
                $bla = NULL; (it is different!)
              - $obj->{expr} syntax
              - (unset) cast?????
              - $bla = unset <== should've been nuked, don't mention it
              - $str{offset} syntax, rather than $str[offset]
              - read notes and apply when any of them are useful
              - remove notes which have been included here.
              - ...
     the rest: Not yet started with.
             TODO: 
              - ?
     oop   : has been revised by Kristian, DONE.
   -->
   
  <sect1 id="language.basic-syntax.phpmode">
   <title>������ �� ��� HTML</title>
  
   <para>   ����� ���� ���� �� ��� �� ������� ��� ���� ������ ���� �� ����� ��� �� 
��� �� ����� ��� ��������� ������ ����� ����� �� ���� ������ ���� ����� �� ��� ��.
���� ������ ����� ������ �� ����� ���� ���� ��� �� ��� ����� ����� ���� ��� �� ����� 
���� ������ �� ���� ����� ���� ������ ��� �� ��� ����. ��� ������ ���� ���� �� �� ���� 
���� �� ��� �� ���� ���� ��� HTML � ����� ���: �� �� �� ���� ������ ���� ��� �� ���� 
��� �� ������ ����� �� �� �� ���� �������� ����� �������.
</para>

   <para>   ���� ���� ������� �� �������� ���� ���� ��������� ����� ����� ������ ���� 
PHP .
�� ��� ��� �������� ������� ������� ������ :
 (&lt;?php. . .?&gt; � &lt;script
    language="php"&gt;. . .&lt;/script&gt;) 
����� ���� �� ��� ����� ������ ��������� ������ �� ���� ��� ������� 
<filename>php.ini</filename>����� ����� �������� ������� ��������� ������� ���� ASP 
������ ����� �� ����� ���� ��� �������� ������ɬ ���� ��� ��� ����� ����� ���� PHP 
���� ����� XML �� XHTML ���� ����� ��� �������      &lt;?php. . .?&gt; </para>

   <para>    �������� (��������) �������� �� PHP:   </para>

    <para>
     <example>
      <title>��� ������ �� ���  HTML</title>
      <programlisting role="php">
<![CDATA[
1.  <? echo ("this is the simplest, an SGML processing instruction\n"); ?>
    <?= expression ?>��� ������ ���� �������� ����� �� "<? echo expression ?>"
    
2.  <?php echo("if you want to serve XHTML or XML documents, do like this\n"); ?>
3.  <script language="php">        echo ("some editors (like FrontPage) don't
              like processing instructions");
    </script>
4.  <% echo ("You may optionally use ASP-style tags"); %>
    <%= $variable; # This is a shortcut for "<% echo . . ." %>]]>
      </programlisting>
     </example>
    </para>

   <para>    ������� ������ ����� ��� ��� �� ���� �������� ������� ������. 
��� ���� ��� �� ���� ������ <function>short_tags</function>    (PHP 3 ���), ������ 
<link
    linkend="ini.short-open-tag">short_open_tag</link> �� ��������� ������ ���� ����� 
PHP� �� ������ ������ PHP �� ����� �������  
--enable-short-tags<command>configure</command>
   </para>

   <para>   ��� ���� ������� ������� �� ������� ��������� ���� ��� �� ���� ���� 
������� �� ��� �� �� ��� XML � XHTML.</para>

   <para>    ������� ������� ����� ��� ��� ���� ��������� ��� ����� ASP �� �� ���� 
������� (ASP-style) ������ �� ���� ����� ������� <link 
linkend="ini.asp-tags">asp_tags</link>.<note>
     <para>��� ����� ��� ������ ASP �� ������� 3.0.4.</para>
    </note>
   </para>

   <para>    ����� ������� �������� ��� ����� ������ ���� ��� ���� �� ��� �������.
��� ���� ����� �� ���� ������� �������� ; ��� ��� ��� � ��� ����� ��� ����� ������� 
�������� ������ ��� ��� �� �������� ��� ����� �������.</para>
    
    <para>���� �� PHP �������� ����� ������ :<example><title>���� �����</title>
     <programlisting role="php">
<![CDATA[
<?php
if ($expression) { 
    ?>
    <strong>This is true.</strong>
    <?php 
} else { 
    ?>
    <strong>This is false.</strong>
    <?php 
}
?>]]>     </programlisting>
    </example>    ���� ������ ��� �� ����٬ ��� ���� PHP  ����� ��� ����� ������� 
?&gt; , ���� ������ ����� �� �� ��� ��� ������� ��� ��� ����� ��� ����. 
������ ������ ��� ����� �������� ������ ��� �����ɬ ���� ���� ������ �� ���� ������ �� 
����� ���� ����� �� ���լ 
�� �� ����� ���� ���� ������� ���� PHP �� ����� ����� ������� ��� ������ ����� ����� 
���� �� ������� <function>echo</function> �� <function>
print</function> �� �� ����.</para>
  </sect1>
  
  <sect1 id="language.basic-syntax.instruction-separation">
   <title>
����� ��� �������</title>
   
   <simpara>    ��� ��� ������� ����� �� ��� C �� Perl ������ �� ��� ���� ������� 
��������.</simpara>

   <para>    ����� ������� (?&gt;) ����� ����� ����� �����ɬ 
��� ���� ��� ��������� ��������� ��� �����:<informalexample>
     <programlisting role="php">
<![CDATA[
<?php
    echo "This is a test";
?>

<?php echo "This is a test" ?>]]>     </programlisting>
    </informalexample>
   </para>
  </sect1>

  <sect1 id="language.basic-syntax.comments">
   <title>���������</title>
   
   <para>    PHP ���� ����� ��� C � C++ � Unix shell-style �� ����� ���������. �����:
<informalexample>
     <programlisting role="php">
<![CDATA[
<?php
    echo "This is a test"; // This is a one-line c++ style comment
    /* This is a multi line comment
       yet another line of comment */
    echo "This is yet another test";
    echo "One Final Test"; # This is shell-style style comment
?>]]>     </programlisting>
    </informalexample>
   </para>

   <simpara>    ����� ����� "�����-������" �� ������� ���� ������ ����� �� ������ ��� 
����� ����� �� �������� ����� ����.</simpara>
   <informalexample>
    <programlisting role="php">
<![CDATA[
<h1>This is an <?php # echo "simple";?> example.</h1>
<p>The header above will say 'This is an example'.
]]>
    </programlisting>
   </informalexample> 

   <simpara>    ��� �� ���� ����� ����� ������� ��� ��� C �� ��������ʬ ��� �� ���� 
����� ����� ������ ����� ������� ����� �����.</simpara>

   <informalexample>
    <programlisting role="php">
<![CDATA[
<?php
 /* 
    echo "This is a test"; /* This comment will cause a problem */
 */
?>]]>
    </programlisting>
   </informalexample>
  </sect1>
 </chapter>
 
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

Index: phpdoc/ar/language/constants.xml
+++ phpdoc/ar/language/constants.xml
<?xml version="1.0" encoding="iso-8859-6"?>
<!-- $EN-Revision: 1.24 $ -->
 <chapter id="language.constants">
  <title>�������</title>

  <simpara>  ������ �� ��� ����� ����� �Ǭ 
���� �� ���� �� ������� ��� ������ �� ���� �� ����� ���� ����� ��������.
 ('������� �������' <constant>__FILE__</constant> � <constant>__LINE__</constant> ���� 
������� ���� ������ɬ 
����� ���� ����� ������.)
������ ����� ����� ������ ������� �������� ���������. ��� ��� ������ �� ���� ������� 
������ ����� ����� .
</simpara>
  <para>   ��� ������ ���� ��� ������ ��� ����� �� ��� ���� ��� ��. 
����� ������ ������ ���� ���� �� ���� ����ɬ ������ ��� ��� �� ������ ������� �� 
����� ������� . ������� ����� ���� ����� ����� ��� ������ ���� 
:<literal>[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*</literal>

   <!-- TODO: Example of valid & invalid constant names -->
  </para>
                                      
  <note>
   <simpara>   ��� ������ ����� �� ��� ������ �������� ���������� a-z � A-Z ����� 
ASCII ��� ������ �� 127 ���� 255 (Ox7f-Oxff).
</simpara>
  </note>

  <simpara>  ��� (����) ������� ������ ���� ���� ��� ������ ������ ���� �� �� ���� 
���� ������� ��� ������ �����.</simpara>

  <sect1 id="language.constants.syntax">
   <title>������</title>
   <simpara>    ������ �� ���� ������ �������� ���� <function>define</function>. ����� 
��� ����� ������ �� ���� ����� �� ����� �� ���� ������.
</simpara>
   <simpara>   �������� �������� ��� (<type>boolean</type>, <type>integer</type>, 
    <type>double</type> � <type>string</type>) ���� ��������� �� �������.
   </simpara>
   <simpara>    ������ ������ ��� ���� �� ���� �� ���� ����� ���� ������.
 ��� ��� ��������ʬ ��� �� <emphasis>��</emphasis> ���� ������ 
������<literal>$</literal>
    ������ ������� ������ <function>constant</function>� ������ ���� �����ʬ ��� ��� 
���� �� ������� ��� ������ ����������.
     ������ ����� ������� <function>get_defined_constants</function> ������ ��� ����� 
��� ������� �������  .
   </simpara>
   <note>
    <simpara>     ������� � ��������� (�������) ��� �� ����� �����ɬ ��� ���� �� ��� 
����� ��� &true; � 
     <varname>$TRUE</varname> ������� ������.</simpara>
   </note>
   <simpara>
    ����� ������ ������ ��� ���� ������� PHP ��� ���� ������� ��� ������ ���� ���� 
������.    
��� ���� <link linkend="features.error-handling">�����</link> ����� ���� ��� ��� 
������. ���� ����� ������� ������ <function>defined</function> ��� ���� �� ���� �� ��� 
��� ������ �� �� ������.</simpara>
   <para>   ��� �� ���������� ��� ������� ���������� :
    <itemizedlist>
     <listitem>
      <simpara>       ������� �� ������ ����� �������  (<literal>$</literal>)   ����ǻ 
     </simpara>
     </listitem>
     <listitem>
      <simpara>       ������� ���� �� ��� ������� ��� �� ���� ������        
<function>define</function>, ���� �� ���� ����� ����;      </simpara>
     </listitem>
     <listitem>
      <simpara>       ������� ���� ������� �������� �� �� ���� ��� �������� ����� ��� 
��������ʻ      </simpara>
     </listitem>
     <listitem>
      <simpara>      ������� �� ���� ����� ������� �� ����� ������Ǭ ����� ��� ������� 
��� ���� ����� ���� �����
      </simpara>
     </listitem>
     <listitem>
      <simpara>      ������� ���� �� ���� ���� ������ ���.</simpara>
     </listitem>
    </itemizedlist>
   </para>

   <para>
    <example>
     <title>����� �������</title>
     <programlisting role="php">
<![CDATA[
<?php
define("CONSTANT", "Hello world.");
echo CONSTANT; // outputs "Hello world."
echo Constant; // outputs "Constant" and issues a notice.
?>]]>
     </programlisting>
    </example>

   </para>
  </sect1>
  
  <sect1 id="language.constants.predefined">
   <title>������� ������� ������</title>

   <simpara>    ���� PHP ����� ������ �� ������� ������� ������ ��� ������ ����.
 ������ �� ��� ������� ������ ���� ������ ������ �� ���������� (extensions)� ����� 
����� ����� ���� ��� ���������� ������ ��׬ ��� ��� ������� ����������  �� �� ���� 
����� ����� �������.
</simpara>

   <simpara>  ����� �������� ������� ������ ������ �� ��� ����� <link
    linkend="reserved.constants">������� ������� ������</link>
   </simpara>


  </sect1>
 </chapter>
 
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

Reply via email to