note 97895 added to control-structures.while

From: Date: Fri, 14 May 2010 09:28:46 +0000
Subject: note 97895 added to control-structures.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-169234@lists.php.net to get a copy of this message
re ravenswd: 6th March that example is functionally equivalent to the below: <?php $finaldir = 'download'; for ($finished = false; !$finished; ;){ $rn = rand(); $outfile = $finaldir.'/'.$rn.'.gif'; if ( ! file_exists($outfile) ){ $finished = true; } } ?> (Forgive me, I prefer the braces syntax to colon syntax.) ---- Server IP: 78.110.173.36 Probable Submitter: 90.152.22.26 ---- Manual Page -- http://www.php.net/manual/en/control-structures.while.php Edit -- https://master.php.net/note/edit/97895 Del: integrated -- https://master.php.net/note/delete/97895/integrated Del: useless -- https://master.php.net/note/delete/97895/useless Del: bad code -- https://master.php.net/note/delete/97895/bad+code Del: spam -- https://master.php.net/note/delete/97895/spam Del: non-english -- https://master.php.net/note/delete/97895/non-english Del: in docs -- https://master.php.net/note/delete/97895/in+docs Del: other reasons-- https://master.php.net/note/delete/97895 Reject -- https://master.php.net/note/reject/97895 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169234) next »