How to break a "while" loop ?

From: Date: Fri, 15 Nov 2002 15:22:55 +0000
Subject: How to break a "while" loop ?
Groups: php.general 
Request: Send a blank email to php-general+get-124611@lists.php.net to get a copy of this message
Hi all, 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

« previous php.general (#124611) next »