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 =
- &$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 = &$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 & $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 << $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 >> $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 <> $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 < $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 > $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 <= $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 >= $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"> </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æ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æ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> ©
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"> </TD></TR><TR><TD COLSPAN="3" ALIGN="center"> </TD>
</TR></TABLE></TD></TR></TABLE></DIV></TD></TR></TABLE>
</BODY></HTML>