note 73464 deleted from control-structures.do.while by colder

From: Date: Sat, 24 Feb 2007 09:56:44 +0000
Subject: note 73464 deleted from control-structures.do.while by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123801@lists.php.net to get a copy of this message
Note Submitter: mattias at thorslund dot us Reason: in docs ---- As I understand the second example, the purpose is to have a block to break "out" of if one of the checked conditions are met. The purpose is not for the code in the do-while block to execute more than once (hence 0, which evaluates to FALSE). It's a way to "skip ahead" in the code in a neat way without a lot of nested "if" statements.

« previous php.notes (#123801) next »