Re: do while example

From: Date: Sun, 04 May 2008 07:32:41 +0000
Subject: Re: do while example
References: 1  Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-958@lists.php.net to get a copy of this message
On 04.05.2008 11:25, Voytsekhovskyy Alexander wrote:
Hi, I am so sorry, but i think here: http://ua2.php.net/manual/ru/control-structures.do.while.php in 2nd example and explanations should be /do-while/ (1) instead of /do-while/ (0)
Нет, там именно while(0), специально для того, чтобы можно было "выйти" break'ом из любой части кода, но сам код при этом не выполняется в бесконечном цикле, а только 1 раз. -- Wbr, Antony Dovgal

« previous php.doc.ru (#958) next »