cvs: phpdoc /pl/language operators.xml

From: Date: Sat, 20 Apr 2002 12:32:08 +0000
Subject: cvs: phpdoc /pl/language operators.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969344639@lists.php.net to get a copy of this message
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> + = += -= *= /= .= %= &amp;= |= ^= ~= &lt;&lt;= &gt;&gt;= + </entry> + </row> + <row> + <entry>lewe</entry> + <entry>? :</entry> + </row> + <row> + <entry>lewe</entry> + <entry>||</entry> + </row> + <row> + <entry>lewe</entry> + <entry>&amp;&amp;</entry> + </row> + <row> + <entry>lewe</entry> + <entry>|</entry> + </row> + <row> + <entry>lewe</entry> + <entry>^</entry> + </row> + <row> + <entry>lewe</entry> + <entry>&amp;</entry> + </row> + <row> + <entry>bez powi±zania</entry> + <entry>== != === !==</entry> + </row> + <row> + <entry>bez powi±zania</entry> + <entry>&lt; &lt;= &gt; &gt;=</entry> + </row> + <row> + <entry>lewe</entry> + <entry>&lt;&lt; &gt;&gt;</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 "&amp;&amp;" 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 "&amp;&amp;" 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> - = += -= *= /= .= %= &amp;= |= ^= ~= &lt;&lt;= &gt;&gt;= - </entry> - </row> - <row> - <entry>lewe</entry> - <entry>? :</entry> - </row> - <row> - <entry>lewe</entry> - <entry>||</entry> - </row> - <row> - <entry>lewe</entry> - <entry>&amp;&amp;</entry> - </row> - <row> - <entry>lewe</entry> - <entry>|</entry> - </row> - <row> - <entry>lewe</entry> - <entry>^</entry> - </row> - <row> - <entry>lewe</entry> - <entry>&amp;</entry> - </row> - <row> - <entry>bez powi±zania</entry> - <entry>== != === !==</entry> - </row> - <row> - <entry>bez powi±zania</entry> - <entry>&lt; &lt;= &gt; &gt;=</entry> - </row> - <row> - <entry>lewe</entry> - <entry>&lt;&lt; &gt;&gt;</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>

« previous php.doc (#969344639) next »