pgerzson Thu Dec 27 19:56:24 2001 EDT
Modified files:
/phpdoc/hu/language expressions.xml
Log:
update to the recent EN revision
Index: phpdoc/hu/language/expressions.xml
diff -u phpdoc/hu/language/expressions.xml:1.10 phpdoc/hu/language/expressions.xml:1.11
--- phpdoc/hu/language/expressions.xml:1.10 Sat Dec 15 09:49:54 2001
+++ phpdoc/hu/language/expressions.xml Thu Dec 27 19:56:24 2001
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.13 Maintainer: goba Status: ready -->
+<!-- EN-Revision: 1.19 Maintainer: goba Status: ready -->
<!-- CREDITS: kgergely -->
<chapter id="language.expressions">
@@ -33,9 +33,9 @@
P�ld�ul tekints�k az al�bbi f�ggv�nyt:
<informalexample>
- <programlisting>
+ <programlisting role="php">
<![CDATA[
-function foo ()
+function ize()
{
return 5;
}
@@ -153,23 +153,34 @@
hacsak nem l�ttad m�s nyelvekben, a h�romoperandus�
felt�teles oper�tor:
- <informalexample><programlisting>
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
$elso ? $masodik : $harmadik
- </programlisting></informalexample>
+]]>
+ </programlisting>
+ </informalexample>
�rt�ke: ha az els� kifejez�s �rt�ke igaz (nem nulla),
akkor a m�sodik r�szkifejez�s, egy�bk�nt a harmadik
r�szkifejez�s. Egy seg�t� p�lda:
- <informalexample><programlisting>
+ <informalexample>
+ <programlisting role="php">
+<![CDATA[
$b = $todo == 'n�vel' ? $a+5 : $a-5; // $b $a+5 lesz, ha $todo �rt�ke n�vel
// egy�bk�nt $b $a-5 lesz
- </programlisting></informalexample>
+]]>
+ </programlisting>
+ </informalexample>
Ez megegyezik az al�bbi k�ddal:
- <informalexample><programlisting>
+ <informalexample>
+ <programlisting>
+<![CDATA[
if ($todo == 'n�vel') $b = $a+5 else $b = $a-5;
+]]>
</programlisting></informalexample>
</para>
@@ -179,7 +190,8 @@
posztinkrement�l�s, �s a kifejez�sek jobb meg�rt�s�ben:
<informalexample>
- <programlisting>
+ <programlisting role="php">
+<![CDATA[
function duplaz($i)
{
return $i*2;
@@ -194,15 +206,18 @@
/* itt $d �s $e hat */
-$f = duplaz($d++); /* $d k�tszeres�nek hozz�rendel�se <emphasis>miel�tt</emphasis>
+$f = duplaz($d++); /* $d k�tszeres�nek hozz�rendel�se MIEL�TT
inkrement�l�dik, 2*6 = 12 lesz $f */
-$g = duplaz(++$e); /* $e k�tszeres�nek hozz�rendel�se <emphasis>miut�n</emphasis>
+$g = duplaz(++$e); /* $e k�tszeres�nek hozz�rendel�se MIUT�N
inkrement�l�dik 2*7=14 lesz $g */
$h = $g += 10; /* el�sz�r $g 10-zel n�, �gy 24 lesz az �rt�ke,
ez ad�dik tov�bb $h-nak, az is 24 lesz*/
-</programlisting></informalexample></para>
+]]>
+ </programlisting>
+ </informalexample>
+ </para>
<simpara>
A fejezet elej�n azt �g�rt�k, hogy le�rjuk a k�l�nb�z�
@@ -255,4 +270,7 @@
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
+ vim600: syn=xml fen fdm=syntax fdl=2 si
+ vim: et tw=78 syn=sgml
+ vi: ts=1 sw=1
-->