cvs: phpdoc /hu/language operators.xml references.xml

From: Date: Sun, 29 Oct 2000 16:23:31 +0000
Subject: cvs: phpdoc /hu/language operators.xml references.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969332716@lists.php.net to get a copy of this message
goba Sun Oct 29 08:23:31 2000 EDT Modified files: /phpdoc/hu/language operators.xml references.xml Log: Getting in sync / updating

Index: phpdoc/hu/language/operators.xml diff -u phpdoc/hu/language/operators.xml:1.3 phpdoc/hu/language/operators.xml:1.4 --- phpdoc/hu/language/operators.xml:1.3 Sun Sep 17 01:04:57 2000 +++ phpdoc/hu/language/operators.xml Sun Oct 29 08:23:30 2000 @@ -15,9 +15,9 @@ <tgroup cols="3"> <thead> <row> - <entry>példa</entry> - <entry>név</entry> - <entry>eredmény</entry> + <entry>Példa</entry> + <entry>Név</entry> + <entry>Eredmény</entry> </row> </thead> <tbody> @@ -50,14 +50,14 @@ </tgroup> </table> -<!-- This appears to be inaccurate. Division always returns a float. - <simpara> - The division operator ("/") returns an integer value (the result - of an integer division) if the two operands are integers (or - strings that get converted to integers). If either operand is a - floating-point value, floating-point division is performed. - </simpara> ---></sect1> + <simpara> + Az osztás operátor ("/") egész értékkel tér vissza (egy egész + osztás eredményeképpen) ha a két operandusa egész (vagy + string, ami egésszé konvertálódott) és a hányados is egész. + Ha valamelyik operandus lebegõpontos szám, vagy az osztás + eredménye nem egész, egy lebegépontos szám a visszatérési érték. + </simpara> + </sect1> <sect1 id="language.operators.assignment"> <title>Hozzárendelõ operátorok</title> @@ -72,9 +72,11 @@ A hozzárendelõ kifejezés értéke a bal oldalhoz rendelt érték. Vagyis a "$a = 3" értéke 3. Ez lehetõséget ad néhány trükkös dologra: - <informalexample><programlisting> + <informalexample> + <programlisting> $a = ($b = 4) + 5; // $a most 9, és $b 4 - </programlisting></informalexample> + </programlisting> + </informalexample> </para> <para> Sõt, az alapvetõ hozzárendelõ operátoron felül @@ -83,14 +85,16 @@ amik lehetõvé teszik, hogy használjunk egy változót egy kifejezésben, majd rögtön be is állítsuk a változót a kifejezés értékére. Például: - <informalexample><programlisting> + <informalexample> + <programlisting> <![CDATA[ $a = 3; $a += 5; // $a-t 8-ra állítja, mintha $a = $a + 5;-öt írtunk volna $b = "Csecs "; $b .= "Emõ"; // $b-t "Csecs Emõ"-re állítja, egyenértékû: $b = $b . "Emõ"; ]]> -</programlisting></informalexample> + </programlisting> + </informalexample> </para> <para> @@ -101,10 +105,12 @@ ciklus belsejében. A PHP 4 támogatja paraméterek érték szerinti átadását a <computeroutput>$var = &amp;$othervar;</computeroutput> szintaxissal, - de ez PHP3-ban nem mûködik. A 'cím szerinti paraméterátadás' + de ez PHP 3-ban nem mûködik. A 'cím szerinti paraméterátadás' azt jelenti, hogy mindkét változó ugyanarra az adatra mutat, tehát semmi nem másolódik sehová [a változó címét - kivéve...] + kivéve...] További információkat a referenciákról a <link + linkend="language.references">Referenciák részletesen</link> + címû fejezetben olvashatsz. </para> </sect1> @@ -121,9 +127,9 @@ <tgroup cols="3"> <thead> <row> - <entry>példa</entry> - <entry>név</entry> - <entry>eredmény</entry> + <entry>Példa</entry> + <entry>Név</entry> + <entry>Eredmény</entry> </row> </thead> <tbody> @@ -169,9 +175,8 @@ </tgroup> </table> </sect1> - - + <sect1 id="language.operators.comparison"> <title>Összehasonlító operátorok</title> <simpara> @@ -184,9 +189,9 @@ <tgroup cols="3"> <thead> <row> - <entry>példa</entry> - <entry>név</entry> - <entry>eredmény</entry> + <entry>Példa</entry> + <entry>Név</entry> + <entry>Eredmény</entry> </row> </thead> <tbody> @@ -288,6 +293,15 @@ <simpara> Lásd még: <function>error_reporting</function>. </simpara> + <warning> + <para> + Jelenleg a "@" hibakezelõ operátor kikapcsolja azon kritikus hibák + jelentését is, amik megállítják a szkript futását. Más problémák + mellett, ha egy függvénybõl érkezõ hibaüzenetek elnyelésére + használod a "@" jelet, meg fog állni a szkript futása, ha + nem létezik a megadott függvény, vagy elírtad a nevét. + </para> + </warning> </sect1> @@ -307,7 +321,7 @@ </para> <para> [Az alábbi kis példa az aktuális könyvtár tartalmát - (hosszú lista, rejtett fileok is) formázva írja ki (illetve + (hosszú lista, rejtett fájlok is) formázva írja ki (illetve fix szélességû betûket használva, entereket tiszteletben tartva)] @@ -345,9 +359,9 @@ <tgroup cols="3"> <thead> <row> - <entry>példa</entry> - <entry>név</entry> - <entry>hatás</entry> + <entry>Példa</entry> + <entry>Név</entry> + <entry>Hatás</entry> </row> </thead> <tbody> @@ -378,7 +392,7 @@ <para> Itt egy egyszerû példaprogram: <informalexample> - <programlisting> + <programlisting role="php"> <![CDATA[ <?php echo "<h3>Postinkrementálás</h3>"; @@ -417,9 +431,9 @@ <tgroup cols="3"> <thead> <row> - <entry>példa</entry> - <entry>név</entry> - <entry>eredmény</entry> + <entry>Példa</entry> + <entry>Név</entry> + <entry>Eredmény</entry> </row> </thead> <tbody> @@ -473,7 +487,10 @@ <literal>1 + 5 * 3</literal> kifejezésben, a kifejezés értéke 16, és nem 18, mert a szorzás operátorának, a (&quot;*&quot;)-nak nagyobb precedenciája van, mint az - összeadásénak (&quot;+&quot;). + összeadásénak (&quot;+&quot;). Zárójeleket használhatsz + a precedencia meghatározására, ha szükséges. Például + <literal>(1 + 5) * 3</literal> eredménye <literal>18</literal> + lesz. </para> <para> [Az asszociativitás talán megér egy kis magyarázatot. @@ -557,7 +574,7 @@ </row> <row> <entry>nem köthetõ</entry> - <entry>== != ===</entry> + <entry>== != === !==</entry> </row> <row> <entry>nem köthetõ</entry> @@ -589,7 +606,9 @@ </row> </tbody> </tgroup> - </table></para></sect1> + </table> + </para> + </sect1> <sect1 id="language.operators.string"> <title>String operátorok</title> @@ -597,13 +616,14 @@ Két string operátor van. Az egyik az összefûzés operátor ('.'), ami bal és jobb argumentumának összefûzöttjével tér vissza. A második az összefûzõ-hozzárendelõ operátor - ('.='). Olvasd el a <link + ('.='), ami szövegesen hozzáfûzi a jobb argumentumát a bal oldali + argumentum végéhez. Olvasd el a <link linkend="language.operators.assignment">Hozzárendelõ operátorok</link> címû részt. </simpara> <para> <informalexample> - <programlisting> + <programlisting role="php"> <![CDATA[ $a = "Para "; $b = $a . "Zita"; // most $b értéke "Para Zita" @@ -628,7 +648,7 @@ sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil - sgml-default-dtd-file:"../manual.ced" + sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil Index: phpdoc/hu/language/references.xml diff -u phpdoc/hu/language/references.xml:1.1 phpdoc/hu/language/references.xml:1.2 --- phpdoc/hu/language/references.xml:1.1 Sun Aug 20 09:45:03 2000 +++ phpdoc/hu/language/references.xml Sun Oct 29 08:23:30 2000 @@ -2,7 +2,7 @@ <title>References Explained</title> <sect1 id="language.references.whatare"> - <title>What are References</title> + <title>What References Are</title> <simpara> References in PHP are means to call same variable content with different names. They are not like C pointers, they are symbol @@ -16,7 +16,7 @@ </sect1> <sect1 id="language.references.whatdo"> - <title>What do References</title> + <title>What References Do</title> <para> PHP references allow you to make two variables to refer to the same content. Meaning, when you do: @@ -63,7 +63,7 @@ </sect1> <sect1 id="language.references.arent"> - <title>What aren't References</title> + <title>What References Are Not</title> <para> As said above, references aren't pointers. That means, the following construct won't do what you expect: @@ -92,9 +92,9 @@ <sect1 id="language.references.return"> <title>Returning References</title> <para> - Returning by-refernce it is useful when you want to use function - to find variable which should be bound to. When returning - references, use this syntax: + Returning by-reference it is useful when you want to use a function + to find which variable a reference should be bound to. When + returning references, use this syntax: <informalexample> <programlisting role="php"> function &amp;find_var ($param) { @@ -106,17 +106,17 @@ $foo->x = 2; </programlisting> </informalexample> - In this example, property of the object returned by the - <varname>find_var</varname> function would be set, not of the + In this example, the property of the object returned by the + <varname>find_var</varname> function would be set, not the copy, as it would be without using reference syntax. </para> <note> <simpara> Unlike parameter passing, here you have to use <literal>&amp;</literal> in both places - to indicate that you - return by-reference, not a copy as usual, and to indicate than - reference binding and not usual assignment should be done for - <varname>$foo</varname>. + return by-reference, not a copy as usual, and to indicate that + reference binding, rather than usual assignment, should be done + for <varname>$foo</varname>. </simpara> </note> </sect1> @@ -143,7 +143,7 @@ </sect1> <sect1 id="language.references.spot"> - <title>Spotting the Reference</title> + <title>Spotting References</title> <simpara> Many syntax constructs in PHP are implemented via referencing mechanisms, so everything told above about reference binding also
« previous php.doc (#969332716) next »