cvs: phpdoc /cs make_chm_index_cs.html /cs/language operators.xml

From: Date: Wed, 17 Apr 2002 22:14:04 +0000
Subject: cvs: phpdoc /cs make_chm_index_cs.html /cs/language operators.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969344520@lists.php.net to get a copy of this message
luk Wed Apr 17 18:14:04 2002 EDT Added files: /phpdoc/cs make_chm_index_cs.html Modified files: /phpdoc/cs/language operators.xml Log:

Index: phpdoc/cs/language/operators.xml diff -u phpdoc/cs/language/operators.xml:1.1 phpdoc/cs/language/operators.xml:1.2 --- phpdoc/cs/language/operators.xml:1.1 Sun Apr 14 15:35:23 2002 +++ phpdoc/cs/language/operators.xml Wed Apr 17 18:14:04 2002 @@ -79,54 +79,53 @@ </informalexample> </para> <para> - In addition to the basic assignment operator, there are "combined - operators" for all of the binary arithmetic and string operators - that allow you to use a value in an expression and then set its - value to the result of that expression. For example: + Kromì základního operátoru pøiøazení existují je¹tì "kombinované + operátory" pro v¹echny binární aritmetické a øetìzové operátory, které + umo¾òují pou¾ít hodnotu ve výrazu a pak hodnotu tohoto výrazu pøiøadit + zpìt. Napøíklad: <informalexample> <programlisting role="php"> <![CDATA[ $a = 3; -$a += 5; // sets $a to 8, as if we had said: $a = $a + 5; -$b = "Hello "; -$b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!"; +$a += 5; // nastaví $a na hodnotu 8, jako kdybychom øekli: $a = $a + 5; +$b = "Ahoj "; +$b .= "tam!"; // nastaví $b na "Ahoj tam!", pøesnì tak, jako $b = $b . "tam!"; ]]> </programlisting> </informalexample> </para> <para> - Note that the assignment copies the original variable to the new - one (assignment by value), so changes to one will not affect the - other. This may also have relevance if you need to copy something - like a large array inside a tight loop. PHP 4 supports assignment - by reference, using the <computeroutput>$var = - &amp;$othervar;</computeroutput> syntax, but this is not possible - in PHP 3. 'Assignment by reference' means that both variables end - up pointing at the same data, and nothing is copied anywhere. - To learn more about references, please read <link - linkend="language.references">References explained</link>. + Uvìdomte si, ¾e pøiøazení zkopíruje hodnotu pùvodní promìnné do nové + promìnné (pøiøazení hodnoty), tak¾e zmìny jedné z nich se na druhé + promìnné neprojeví. To mù¾e mít význam také tehdy, kdy¾ potøebujete + zkopírovat nìco jako obrovské pole uvnitø krátkého cyklu. PHP 4 podporuje + pøiøazení odkazem pou¾itím syntaxe + <computeroutput>$var = &amp;$othervar;</computeroutput>, ale v PHP 3 to + provést nelze. "Pøiøazení odkazem" znamená, ¾e obì promìnné ukazují na + tatá¾ data a nic se nikam nekopíruje. Chcete-li se o odkazech dozvìdìt + více, ètìte prosím + <link linkend="language.references">Vysvìtlení referencí</link>. </para> </sect1> <sect1 id="language.operators.bitwise"> - <title>Bitwise Operators</title> + <title>Bitové operátory</title> <simpara> - Bitwise operators allow you to turn specific bits within an - integer on or off. If both the left- and right-hand parameters are - strings, the bitwise operator will operate on the characters in this - string. + Bitové operátory umo¾òují "pøehodit" konkrétní bit v celoèíselné hodnotì + (integer) na jednièku nebo nulu. Pokud jsou jak levý, tak pravý parametr + øetìzce, pracují bitové operátory na znacích v tìchto øetezcích. </simpara> <para> <informalexample> <programlisting> <![CDATA[ <?php - echo 12 ^ 9; // Outputs '5' + echo 12 ^ 9; // Vypí¹e '5' - echo "12" ^ "9"; // Outputs the Backspace character (ascii 8) + echo "12" ^ "9"; // Vypí¹e znak Backspace (ascii 8) // ('1' (ascii 49)) ^ ('9' (ascii 57)) = #8 - echo "hallo" ^ "hello"; // Outputs the ascii values #0 #4 #0 #0 #0 + echo "hallo" ^ "hello"; // Vypí¹e ascii hodnoty #0 #4 #0 #0 #0 // 'a' ^ 'e' = #4 ?> ]]> @@ -135,54 +134,56 @@ </para> <table> - <title>Bitwise Operators</title> + <title>Bitové 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 &amp; $b</entry> - <entry>And</entry> - <entry>Bits that are set in both $a and $b are set.</entry> + <entry>And (log. souèin)</entry> + <entry>Nastavují se bity, kde je jednièka v $a i v $b.</entry> </row> <row> <entry>$a | $b</entry> - <entry>Or</entry> - <entry>Bits that are set in either $a or $b are set.</entry> + <entry>Or(log. souèet)</entry> + <entry>Nastavují se bity, kde je jednièka v $a nebo v $b (i v + obou souèasnì).</entry> </row> <row> <entry>$a ^ $b</entry> - <entry>Xor</entry> + <entry>Xor (exkluzívní log. souèet)</entry> <entry> - Bits that are set in $a or $b but not both are set. + Nastavují se bity, kde je jednièka v $a nebo v $b, ale ne v obou + souèasnì. </entry> </row> <row> <entry>~ $a</entry> - <entry>Not</entry> + <entry>Not (negace)</entry> <entry> - Bits that are set in $a are not set, and vice versa. + Tam, kde je nula, bude jednièka, a naopak. </entry> </row> <row> <entry>$a &lt;&lt; $b</entry> - <entry>Shift left</entry> + <entry>Posun vlevo</entry> <entry> - Shift the bits of $a $b steps to the left (each step means - "multiply by two") + Posune bity v $a o $b krokù (míst) vlevo (ka¾dý krok znamená + "násobení dvìma"). </entry> </row> <row> <entry>$a &gt;&gt; $b</entry> - <entry>Shift right</entry> + <entry>Posun vpravo</entry> <entry> - Shift the bits of $a $b steps to the right (each step means - "divide by two") + Posune bity v $a o $b krokù (míst) vpravo (ka¾dý krok znamená + "dìlení dvìma"). </entry> </row> </tbody> @@ -191,79 +192,76 @@ </sect1> <sect1 id="language.operators.comparison"> - <title>Comparison Operators</title> + <title>Operátory porovnání</title> <simpara> - Comparison operators, as their name implies, allow you to compare - two values. + Operátory porovnání, jak název napovídá, slou¾í k porovnání dvou hodnot. </simpara> <table> - <title>Comparison Operators</title> + <title>Operátory porovnání</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 == $b</entry> - <entry>Equal</entry> - <entry>&true; if $a is equal to $b.</entry> + <entry>Rovnost</entry> + <entry>&true;, právì kdy¾ je $a rovno $b.</entry> </row> <row> <entry>$a === $b</entry> - <entry>Identical</entry> + <entry>Identita</entry> <entry> - &true; if $a is equal to $b, and they are of the same - type. (PHP 4 only) + &true; kdy¾ je $a rovno $b a navíc této¾ typu (pouze PHP 4). </entry> </row> <row> <entry>$a != $b</entry> - <entry>Not equal</entry> - <entry>&true; if $a is not equal to $b.</entry> + <entry>Nerovnost</entry> + <entry>&true; právì kdy¾ $a není rovno $b.</entry> </row> <row> <entry>$a &lt;> $b</entry> - <entry>Not equal</entry> - <entry>&true; if $a is not equal to $b.</entry> + <entry>Nerovnost</entry> + <entry>&true; právì kdy¾ $a není rovno $b.</entry> </row> <row> <entry>$a !== $b</entry> - <entry>Not identical</entry> + <entry>Neidentita</entry> <entry> - &true; if $a is not equal to $b, or they are not of the same - type. (PHP 4 only) + &true; kdy¾ $a není rovno $b nebo nejsou tého¾ typu (pouze PHP 4). </entry> </row> <row> <entry>$a &lt; $b</entry> - <entry>Less than</entry> - <entry>&true; if $a is strictly less than $b.</entry> + <entry>Men¹í ne¾</entry> + <entry>&true; kdy¾ je $a ostøe men¹í ne¾ $b.</entry> </row> <row> <entry>$a &gt; $b</entry> - <entry>Greater than</entry> - <entry>&true; if $a is strictly greater than $b.</entry> + <entry>Vìt¹í ne¾</entry> + <entry>&true; kdy¾ je $a ostøe vìt¹í ne¾ $b.</entry> </row> <row> <entry>$a &lt;= $b</entry> - <entry>Less than or equal to </entry> - <entry>&true; if $a is less than or equal to $b.</entry> + <entry>Men¹í nebo rovno</entry> + <entry>&true; kdy¾ je $a men¹í nebo rovno $b.</entry> </row> <row> <entry>$a &gt;= $b</entry> - <entry>Greater than or equal to </entry> - <entry>&true; if $a is greater than or equal to $b.</entry> + <entry>Vìt¹í nebo rovno</entry> + <entry>&true; kdy¾ je $a vìt¹í nebo rovno $b.</entry> </row> </tbody> </tgroup> </table> <para> - Another conditional operator is the "?:" (or ternary) operator, - which operates as in C and many other languages. + Jiným podmínkovým operátorem je "?:" (ternární) operátor, který funguje + stejnì jako v C a mnohých jiných jazycích. <informalexample> <programlisting> <![CDATA[ @@ -271,10 +269,10 @@ ]]> </programlisting> </informalexample> - This expression evaluates to <replaceable>expr2</replaceable> if - <replaceable>expr1</replaceable> evaluates to &true;, and - <replaceable>expr3</replaceable> if - <replaceable>expr1</replaceable> evaluates to &false;. + Výraz je ohodnocen jako hodnota <replaceable>expr2</replaceable> kdy¾ + má <replaceable>expr1</replaceable> hodnotu &true;, a + <replaceable>expr3</replaceable> kdy¾ + má <replaceable>expr1</replaceable> hodnotu &false;. </para> </sect1> Index: phpdoc/cs/make_chm_index_cs.html +++ phpdoc/cs/make_chm_index_cs.html <HTML> <HEAD> <TITLE>PHP manuál</TITLE> <META NAME="HTTP_EQUIV" CONTENT="text/html; charset=ISO-8859-2"> <LINK REL="STYLESHEET" HREF="style.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" TOPMARGIN="0" LEFTMARGIN="0"> <TABLE BORDER="0" WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"> <TR><TD COLSPAN="3"><DIV CLASS="NAVHEADER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"><TR><TH COLSPAN="3">PHP Manual</TH></TR><TR><TD COLSPAN="3" ALIGN="center">&nbsp;</TD></TR></TABLE></TD></TR><TR BGCOLOR="#333366"> <TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR></TABLE></DIV></TD></TR> <TR><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD><TD HEIGHT="100%" VALIGN="MIDDLE" WIDTH="100%"><BR> <P><TABLE ALIGN="CENTER"> <TR><TD ALIGN="CENTER"> <H1 CLASS="title">PHP manuál</H1> <DIV CLASS="author">Stig S&aelig;ther Bakken</DIV> <DIV CLASS="author">Alexander Aulbach</DIV> <DIV CLASS="author">Egon Schmid</DIV> <DIV CLASS="author">Jim Winstead</DIV> <DIV CLASS="author">Lars Torben Wilson</DIV> <DIV CLASS="author">Rasmus Lerdorf</DIV> <DIV CLASS="author">Andrei Zmievski</DIV> <DIV CLASS="author">Jouni Ahto</DIV> <H4 CLASS="EDITEDBY">Upravili:</H4> <H3 CLASS="editor">Stig S&aelig;ther Bakken</H3> <H3 CLASS="editor">Egon Schmid</H3> </TD></TR></TABLE> <BR><P ALIGN="CENTER">Tento soubor byl vygenerován: [GENTIME]<BR> Aktuální verzi získáte na adrese <A HREF="http://www.php.net/docs.php">http://www.php.net/docs.php</A>.</P> <BR><P CLASS="copyright" ALIGN="CENTER"><A HREF="copyright.html">Copyright</A> &copy; 1997, 1998, 1999, 2000, 2001, 2002 the PHP Documentation Group</P> </TD><TD><IMG SRC="spacer.gif" WIDTH="10" HEIGHT="1"></TD></TR> <TR><TD COLSPAN="3"><DIV CLASS="NAVFOOTER"><TABLE BGCOLOR="#CCCCFF" BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#333366"> <TD><IMG SRC="spacer.gif" BORDER="0" WIDTH="1" HEIGHT="1"><BR></TD></TR> <TR><TD><TABLE WIDTH="100%" BORDER="0" CELLPADDING="3" CELLSPACING="0"> <TR><TD COLSPAN="3">&nbsp;</TD></TR><TR><TD COLSPAN="3" ALIGN="center">&nbsp;</TD> </TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE> </BODY></HTML>
« previous php.doc (#969344520) next »