note 118710 rejected from control-structures.break by mazzanet

From: Date: Tue, 26 Jan 2016 11:53:49 +0000
Subject: note 118710 rejected from control-structures.break by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-204765@lists.php.net to get a copy of this message
Note Submitter: colool at mail dot ru ---- Why the script displays "xxxxxxxxx" ? <?php $e=20; while($e>1) { while($e>1) { while($e>1) { $e--; if($e<10){break 2;} } } echo'x'; } ?> he should get out of the 2 cycles and infinite output "x" but "$e--;" continues to operate

« previous php.notes (#204765) next »