com doc/ru: Fix Ticks usage example: language/control-structures/declare.xml
[email protected] (Sergey Panteleev) Thu, 11 Mar 2021 13:39:54 +0000
| Newsgroups | php.doc.ru |
|---|---|
| Message-ID | <[email protected]> |
Commit: a033193c7c6ca52293b99ef94584649acf0f5d57=0AAuthor: Alex Erohi= n <[email protected]> Thu, 11 Mar 2021 16:29:10 +0300=0ACom= mitter: Sergey Panteleev <[email protected]> Thu, 11 Mar 2021 16:39:54 +0= 300=0AParents: ce02c81586e96d3edbf0182fbe0f559204f283be=0ABranches: mast= er=0A=0ALink: http://git.php.net/?p=3Ddoc/ru.git;a=3Dcommitdiff;h=3Da= 033193c7c6ca52293b99ef94584649acf0f5d57=0A=0ALog:=0AFix Ticks usage example= =0A=0AChanged paths:=0A M language/control-structures/declare.xml=0A=0A= =0ADiff:=0Adiff --git a/language/control-structures/declare.xml b/language/= control-structures/declare.xml=0Aindex b27a13fd2..56f5477d9 100644=0A--- a/= language/control-structures/declare.xml=0A+++ b/language/control-structures= /declare.xml=0A@@ -1,6 +1,6 @@=0A <?xml version=3D"1.0" encoding=3D"utf-8"?= >=0A <!-- $Revision$ -->=0A-<!-- EN-Revision: 7104ee97ced1768a3231588dfc0bc= 0d7eb1117ad Maintainer: sergey Status: ready -->=0A+<!-- EN-Revision: 10755= 68da56078ca0631f9cb7a310f27f3388c66 Maintainer: sergey Status: ready -->=0A= <!-- Reviewed: no -->=0A =0A <sect1 xml:id=3D"control-structures.declare" = xmlns=3D"http://docbook.org/ns/docbook" xmlns:xlink=3D"http://www.w3.org/19= 99/xlink">=0A@@ -115,13 +115,13 @@ function tick_handler()=0A echo "= =D0=92=D1=8B=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F tick_handler()= \n";=0A }=0A =0A-register_tick_function('tick_handler');=0A+register_tick_f= unction('tick_handler'); // =D0=B2=D1=8B=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5= =D1=82 =D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B5 =D1=82=D0=B8=D0=BA=D0= =B0=0A =0A-$a =3D 1;=0A+$a =3D 1; // =D0=B2=D1=8B=D0=B7=D1=8B=D0=B2=D0= =B0=D0=B5=D1=82 =D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B5 =D1=82=D0=B8= =D0=BA=D0=B0=0A =0A if ($a > 0) {=0A- $a +=3D 2;=0A- print($a);=0A+ = $a +=3D 2; // =D0=B2=D1=8B=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82 =D1=81= =D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B5 =D1=82=D0=B8=D0=BA=D0=B0=0A+ print(= $a); // =D0=B2=D1=8B=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82 =D1=81=D0=BE=D0= =B1=D1=8B=D1=82=D0=B8=D0=B5 =D1=82=D0=B8=D0=BA=D0=B0=0A }=0A =0A ?>=0A@@ -1= 29,34 +129,6 @@ if ($a > 0) {=0A </programlisting>=0A </example>=0A = </para>=0A- <para>=0A- <example>=0A- <title>=D0=9F=D1=80=D0=B8= =D0=BC=D0=B5=D1=80 =D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0= =B2=D0=B0=D0=BD=D0=B8=D1=8F =D1=82=D0=B8=D0=BA=D0=BE=D0=B2</title>=0A- <= programlisting role=3D"php">=0A-<![CDATA[=0A-<?php=0A-=0A-function tick_han= dler()=0A-{=0A- echo "=D0=92=D1=8B=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82= =D1=81=D1=8F tick_handler()\n";=0A-}=0A-=0A-$a =3D 1;=0A-tick_handler();=0A= -=0A-if ($a > 0) {=0A- $a +=3D 2;=0A- tick_handler();=0A- print($a= );=0A- tick_handler();=0A-}=0A-tick_handler();=0A-=0A-?>=0A-]]>=0A- <= /programlisting>=0A- </example>=0A- </para>=0A <simpara>=0A =D0= =A1=D0=BC=D0=BE=D1=82=D1=80=D0=B8=D1=82=D0=B5 =D1=82=D0=B0=D0=BA=D0=B6= =D0=B5 <function>register_tick_function</function> =D0=B8=0A <function>u= nregister_tick_function</function>.=0A