Re: How to break a "while" loop ?

From: Date: Fri, 15 Nov 2002 15:49:53 +0000
Subject: Re: How to break a "while" loop ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124615@lists.php.net to get a copy of this message
fre, 2002-11-15 kl. 16:22 skrev Hacook: > I made a while loop and i'd like to know the comand to break it from inside. > Here is my script : > > while ($michou<=$maxFiles){ > /// My script //////// and ate the end : > if ($michou>$michoumax) { > break; > } > } > > But it doesnt work.... > Can i put 2 conditions in the while() command ? if yes, what is the > structure ? > Thanks, > hacook 'if/continue' instead of 'if/break'? I wondered what it was doing in alien code today, so I looked it up. Best, Tony -- Tony Earnshaw Cricketers are strange people. They wake up in October, only to find that their wives had left them in May. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl

« previous php.general (#124615) next »