slawek Sat Apr 20 08:32:08 2002 EDT
Modified files:
/phpdoc/pl/language operators.xml
Log:
Updated to EN 1.33 (qrak)
Index: phpdoc/pl/language/operators.xml
diff -u phpdoc/pl/language/operators.xml:1.11 phpdoc/pl/language/operators.xml:1.12
--- phpdoc/pl/language/operators.xml:1.11 Fri Mar 15 16:13:52 2002
+++ phpdoc/pl/language/operators.xml Sat Apr 20 08:32:07 2002
@@ -1,15 +1,128 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.32 Maintainer: Qrak Status: ready -->
-<!-- $Revision: 1.11 $ -->
+<!-- EN-Revision: 1.33 Maintainer: Qrak Status: ready -->
+<!-- $Revision: 1.12 $ -->
<chapter id="language.operators">
<title>Operatory</title>
<simpara>
</simpara>
+ <sect1 id="language.operators.precedence">
+ <title>Priorytety operator�w</title>
+ <para>
+ Priorytet operatora okre�la, jak "silnie" operator wi��e ze sob� dwa stoj�ce
+ obok niego wyra�enia. Na przyk�ad, w wyra�eniu <literal>1 +
+ 5 * 3</literal>, wynik wynosi <literal>16</literal>, nie
+ <literal>18</literal> poniewa� operator mno�enia ("*") ma wy�szy priorytet
+ ni� operator dodawania ("+"). Za pomoc� nawias�w mo�na zmienia� priorytet
+ dzia�a� wed�ug regu� arytmetyki. Na przyk�ad: <literal>(1 + 5) * 3</literal>
+ jest r�wne <literal>18</literal>.
+ </para>
+ <para>
+ Poni�sza tabela zawiera priorytet operator�w, od najni�szego priorytetu na
+ g�rze.
+ <table>
+ <title>Priorytety operator�w</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Powi�zanie</entry>
+ <entry>Operator</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>lewe</entry>
+ <entry>,</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>or</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>xor</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>and</entry>
+ </row>
+ <row>
+ <entry>prawe</entry>
+ <entry>print</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>
+ = += -= *= /= .= %= &= |= ^= ~= <<= >>=
+ </entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>? :</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>||</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>&&</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>|</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>^</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>&</entry>
+ </row>
+ <row>
+ <entry>bez powi�zania</entry>
+ <entry>== != === !==</entry>
+ </row>
+ <row>
+ <entry>bez powi�zania</entry>
+ <entry>< <= > >=</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry><< >></entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>+ - .</entry>
+ </row>
+ <row>
+ <entry>lewe</entry>
+ <entry>* / %</entry>
+ </row>
+ <row>
+ <entry>prawe</entry>
+ <entry>! ~ ++ -- (int) (double) (string) (array) (object) @</entry>
+ </row>
+ <row>
+ <entry>prawe</entry>
+ <entry>[</entry>
+ </row>
+ <row>
+ <entry>bez powi�zania</entry>
+ <entry>new</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ </sect1>
+
+
<sect1 id="language.operators.arithmetic">
<title>Operatory Arytmetyczne</title>
<simpara>
- Czy pami�tasz podstawy arytmetyki ze szko�y? W PHP operatory dzia�aj�
+ Czy pami�tasz podstawy arytmetyki ze szko�y? Operatory w PHP dzia�aj�
niemal�e tak samo.
</simpara>
<table>
@@ -266,8 +379,8 @@
</tgroup>
</table>
<para>
- Jeszcze jednym operatorem warunkowym jest operator "?:", dzia�aj�cy tak jak
- w C i wielu innych j�zykach.
+ Jeszcze jednym operatorem warunkowym jest operator "?:" (tzw. ternariusz),
+ dzia�aj�cy tak jak w C i wielu innych j�zykach.
<informalexample>
<programlisting>
<![CDATA[
@@ -491,124 +604,13 @@
</tgroup>
</table>
<simpara>
- Operatory "or" i "and" maj� inny priorytet ni� "||" i "&&" i w�a�nie z
tego
- powodu w PHP s� dwa rodzaje operator�w "lub" i "i". (Zobacz
+ Operatory "or" i "and" maj� inny priorytet ni� "||" i "&&" i w�a�nie
+ z tego powodu w PHP s� dwa r�ne operatory dla "lub" i "i". (Zobacz
<link linkend="language.operators.precedence">Priorytety Operator�w</link>.)
</simpara>
</sect1>
- <sect1 id="language.operators.precedence">
- <title>Priorytety operator�w</title>
- <para>
- Priorytet operatora okre�la, jak "silnie" operator wi��e ze sob� dwa stoj�ce
- obok niego wyra�enia. Na przyk�ad, w wyra�eniu <literal>1 +
- 5 * 3</literal>, wynik wynosi <literal>16</literal>, nie
- <literal>18</literal> poniewa� operator mno�enia ("*") ma wy�szy priorytet
- ni� operator dodawania ("+"). Za pomoc� nawias�w mo�na zmienia� priorytet
- dzia�a� wed�ug regu� arytmetyki. Na przyk�ad: <literal>(1 + 5) * 3</literal>
- jest r�wne <literal>18</literal>.
- </para>
- <para>
- Poni�sza tabela zawiera priorytet operator�w, od najni�szego priorytetu na
- g�rze.
- <table>
- <title>Priorytety operator�w</title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>Powi�zanie</entry>
- <entry>Operator</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>lewe</entry>
- <entry>,</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>or</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>xor</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>and</entry>
- </row>
- <row>
- <entry>prawe</entry>
- <entry>print</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>
- = += -= *= /= .= %= &= |= ^= ~= <<= >>=
- </entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>? :</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>||</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>&&</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>|</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>^</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>&</entry>
- </row>
- <row>
- <entry>bez powi�zania</entry>
- <entry>== != === !==</entry>
- </row>
- <row>
- <entry>bez powi�zania</entry>
- <entry>< <= > >=</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry><< >></entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>+ - .</entry>
- </row>
- <row>
- <entry>lewe</entry>
- <entry>* / %</entry>
- </row>
- <row>
- <entry>prawe</entry>
- <entry>! ~ ++ -- (int) (double) (string) (array) (object) @</entry>
- </row>
- <row>
- <entry>prawe</entry>
- <entry>[</entry>
- </row>
- <row>
- <entry>bez powi�zania</entry>
- <entry>new</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </para>
- </sect1>
-
+
<sect1 id="language.operators.string">
<title>Operatory �a�cuchowe</title>
<simpara>