cvs: phpdoc /cs/language operators.xml

From: Date: Wed, 24 Apr 2002 18:42:36 +0000
Subject: cvs: phpdoc /cs/language operators.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969344804@lists.php.net to get a copy of this message
luk Wed Apr 24 14:42:36 2002 EDT Modified files: /phpdoc/cs/language operators.xml Log:

Index: phpdoc/cs/language/operators.xml diff -u phpdoc/cs/language/operators.xml:1.3 phpdoc/cs/language/operators.xml:1.4 --- phpdoc/cs/language/operators.xml:1.3 Thu Apr 18 16:28:57 2002 +++ phpdoc/cs/language/operators.xml Wed Apr 24 14:42:34 2002 @@ -309,38 +309,35 @@ </para> <note> <simpara> - The @-operator works only on expressions. A simple rule of thumb - is: if you can take the value of something, you can prepend the @ - operator to it. For instance, you can prepend it to variables, - function and <function>include</function> calls, constants, and - so forth. You cannot prepend it to function or class definitions, - or conditional structures such as <literal>if</literal> and - <literal>foreach</literal>, and so forth. + Operátor @ pracuje pouze na výrazech. Platí jednoduché pravidlo: + mù¾ete-li získat hodnotu nìèeho, mù¾ete pøed to dát operátor @. + To se týká napøíklad promìnných, funkcí, volání + <function>include</function> konstant a podobnì. Nemù¾ete ho pøedøadit + definicím funkcí nebo tøíd a podmínkovým strukturám typu + <literal>if</literal> nebo <literal>foreach</literal>. </simpara> </note> <simpara> - See also <function>error_reporting</function>. + Viz také <function>error_reporting</function>. </simpara> <warning> <para> - Currently the "@" error-control operator prefix will even disable - error reporting for critical errors that will terminate script - execution. Among other things, this means that if you use "@" to - suppress errors from a certain function and either it isn't - available or has been mistyped, the script will die right there - with no indication as to why. + V souèasnosti pøedøazení operátoru øízení chyb "@" vyøadí i hlá¹ení + kritických chyb, které zpùsobí ukonèení provádìní skriptu. To mj. + znamená, ¾e pokud pou¾ijete "@" k potlaèení chyb z nìjaké funkce, + a tato funkce není k dispozici nebo obsahuje chyby, skript zde skonèí + bez jakékoli indikace, co se stalo. </para> </warning> </sect1> <sect1 id="language.operators.execution"> - <title>Execution Operators</title> + <title>Provádìcí operátory</title> <para> - PHP supports one execution operator: backticks (``). Note that - these are not single-quotes! PHP will attempt to execute the - contents of the backticks as a shell command; the output will be - returned (i.e., it won't simply be dumped to output; it can be - assigned to a variable). + PHP podporuje jeden provádìcí operátor: obrácené apostrofy (``). + Uvìdomte si, ¾e to nejsou obyèejné apostrofy! PHP se pokusí provést + obsah uzavøený mezi tìmito znaky jako pøíkaz shellu; výstup je vrácen + (tzn. nebude pouze vypsán na výstupù mù¾e být pøiøazen promìnné). <informalexample> <programlisting role="php"> <![CDATA[ @@ -352,83 +349,83 @@ </para> <note> <para> - The backtick operator is disabled when <link - linkend="ini.safe-mode">safe mode</link> is enabled - or <function>shell_exec</function> is disabled. + Operátor mù¾e být vyøazen, pokud je aktivní + <link linkend="ini.safe-mode">bezpeèný re¾im</link> nebo je vypnuto + <function>shell_exec</function>. </para> </note> <para> - See also <function>escapeshellcmd</function>, <function>exec</function>, + Viz také <function>escapeshellcmd</function>, <function>exec</function>, <function>passthru</function>, <function>popen</function>, - <function>shell_exec</function>, and <function>system</function>. + <function>shell_exec</function>, a <function>system</function>. </para> </sect1> <sect1 id="language.operators.increment"> - <title>Incrementing/Decrementing Operators</title> + <title>Inkrementaèní/Dekrementaèní operátory</title> <para> - PHP supports C-style pre- and post-increment and decrement - operators. + PHP podporuje pre- a post inkrementaèní a dekrementaèní operátory ve + stylu C. </para> <table> - <title>Increment/decrement Operators</title> + <title>Inkrementaèní/dekrementaèní operátory</title> <tgroup cols="3"> <thead> <row> - <entry>Example</entry> - <entry>Name</entry> - <entry>Effect</entry> + <entry>Pøíklad</entry> + <entry>Název</entry> + <entry>Úèinek</entry> </row> </thead> <tbody> <row> <entry>++$a</entry> - <entry>Pre-increment</entry> - <entry>Increments $a by one, then returns $a.</entry> + <entry>Pre-inkrementace</entry> + <entry>Inkrementuje $a o jednièku, potom vrátí $a.</entry> </row> <row> <entry>$a++</entry> - <entry>Post-increment</entry> - <entry>Returns $a, then increments $a by one.</entry> + <entry>Post-inkrementace</entry> + <entry>Vrátí $a, potom inkrementuje $a o jednièku.</entry> </row> <row> <entry>--$a</entry> - <entry>Pre-decrement</entry> - <entry>Decrements $a by one, then returns $a.</entry> + <entry>Pre-dekrementace</entry> + <entry>Dekrementuje $a o jednièku, potom vrátí $a.</entry> </row> <row> <entry>$a--</entry> - <entry>Post-decrement</entry> - <entry>Returns $a, then decrements $a by one.</entry> + <entry>Post-dekrementace</entry> + <entry>Vrátí $a, potom dkrementuje $a o jednièku.</entry> </row> </tbody> </tgroup> </table> <para> - Here's a simple example script: + Zde je pøíklad jednoduchého skriptu: <informalexample> <programlisting role="php"> <![CDATA[ <?php -echo "<h3&gt;Postincrement</h3&gt;"; +echo "<h3&gt;Postinkrementace</h3&gt;"; $a = 5; -echo "Should be 5: " . $a++ . "<br>\n"; -echo "Should be 6: " . $a . "<br>\n"; +echo "Mìlo by být 5: " . $a++ . "<br>\n"; +echo "Mìlo by být 6: " . $a . "<br>\n"; -echo "<h3>Preincrement</h3>"; +echo "<h3>Preinkrementace</h3>"; $a = 5; -echo "Should be 6: " . ++$a . "<br>\n"; -echo "Should be 6: " . $a . "<br>\n"; +echo "Mìlo by být 6: " . ++$a . "<br>\n"; +echo "Mìlo by být 6: " . $a . "<br>\n"; -echo "<h3>Postdecrement</h3>"; +echo "<h3>Postdekrementace</h3>"; $a = 5; -echo "Should be 5: " . $a-- . "<br>\n"; -echo "Should be 4: " . $a . "<br>\n"; +echo "Mìlo by být 5: " . $a-- . "<br>\n"; +echo "Mìlo by být: " . $a . "<br>\n"; -echo "<h3>Predecrement</h3>"; +echo "<h3>Predekrementace</h3>"; $a = 5; -echo "Should be 4: " . --$a . "<br>\n"; -echo "Should be 4: " . $a . "<br>\n"; +echo "Mìlo by být 4: " . --$a . "<br>\n"; +echo "Mìlo by být 4: " . $a . "<br>\n"; ?> ]]> </programlisting> @@ -437,62 +434,61 @@ </sect1> <sect1 id="language.operators.logical"> - <title>Logical Operators</title> + <title>Logické operátory</title> <table> - <title>Logical Operators</title> + <title>Logické operátory</title> <tgroup cols="3"> <thead> <row> - <entry>Example</entry> - <entry>Name</entry> - <entry>Result</entry> + <entry>Pøíklad</entry> + <entry>Název</entry> + <entry>Výsledek</entry> </row> </thead> <tbody> <row> <entry>$a and $b</entry> <entry>And</entry> - <entry>&true; if both $a and $b are &true;.</entry> + <entry>&true; kdy¾ $a i $b jsou &true;.</entry> </row> <row> <entry>$a or $b</entry> <entry>Or</entry> - <entry>&true; if either $a or $b is &true;.</entry> + <entry>&true; kdy¾ $a nebo $b je &true;.</entry> </row> <row> <entry>$a xor $b</entry> <entry>Xor</entry> - <entry>&true; if either $a or $b is &true;, but not both.</entry> + <entry>&true; kdy¾ $a nebo $b je &true;, ale ne oba souèasnì.</entry> </row> <row> <entry>! $a</entry> <entry>Not</entry> - <entry>&true; if $a is not &true;.</entry> + <entry>&true; kdy¾ $a není &true;.</entry> </row> <row> <entry>$a &amp;&amp; $b</entry> <entry>And</entry> - <entry>&true; if both $a and $b are &true;.</entry> + <entry>&true; kdy¾ $a i $b jsou &true;.</entry> </row> <row> <entry>$a || $b</entry> <entry>Or</entry> - <entry>&true; if either $a or $b is &true;.</entry> + <entry>&true; kdy¾ $a nebo $b je &true;.</entry> </row> </tbody> </tgroup> </table> <simpara> - The reason for the two different variations of "and" and "or" - operators is that they operate at different precedences. (See - <link linkend="language.operators.precedence">Operator - Precedence</link>.) + Dùvodem pro dvì rùzné varianty operátorù "and" a "or" je to, ¾e mají + jinou prioritu. (Viz <link linkend="language.operators.precedence">Priorita + operátorù</link>.) </simpara> </sect1> <sect1 id="language.operators.precedence"> - <title>Operator Precedence</title> + <title>Priorita operátorù</title> <para> The precedence of an operator specifies how "tightly" it binds two expressions together. For example, in the expression <literal>1 +
« previous php.doc (#969344804) next »