note 117156 added to control-structures.while

From: Date: Thu, 23 Apr 2015 05:56:22 +0000
Subject: note 117156 added to control-structures.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-202327@lists.php.net to get a copy of this message
A cool way to keep evaluating something until it fails a test. <?php while (true) { if ('test') { // is initial condition true // do something that also changes initial condition } else { // condition failed break; // leave loop } } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 2602:306:832a:9cc0:cf7:8416:65d4:55b1 ---- Manual Page -- http://php.net/manual/en/control-structures.while.php Edit -- https://master.php.net/note/edit/117156 Del: integrated -- https://master.php.net/note/delete/117156/integrated Del: useless -- https://master.php.net/note/delete/117156/useless Del: bad code -- https://master.php.net/note/delete/117156/bad+code Del: spam -- https://master.php.net/note/delete/117156/spam Del: non-english -- https://master.php.net/note/delete/117156/non-english Del: in docs -- https://master.php.net/note/delete/117156/in+docs Del: other reasons-- https://master.php.net/note/delete/117156 Reject -- https://master.php.net/note/reject/117156 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202327) next »