note 31980 deleted from control-structures.alternative-syntax by didou

From: Date: Tue, 24 Jun 2003 13:20:00 +0000
Subject: note 31980 deleted from control-structures.alternative-syntax by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-50931@lists.php.net to get a copy of this message
Note Submitter: dvdmandt@hotmail.com ---- Alternative syntax is useful when you have lots of control structures on top of eachother... if($a) { while($b) { if($c) { // Some code here } else { for($x=0;$x<10;$x++) { // Some code here } } } } else { // Some code here } At some point you might want to findout which } belongs to the while loop... That's when you realize it would be much better with while($b): endwhile; Case anybody feels like mailing me, replace hotmail.com with telia.com...

« previous php.notes (#50931) next »