note 118703 added to control-structures.do.while

From: Date: Thu, 21 Jan 2016 18:56:42 +0000
Subject: note 118703 added to control-structures.do.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-204742@lists.php.net to get a copy of this message
It might be obvious but still, for those who need to use do-while with alternative syntax you can use while-break combination like in a code below: <?php do{ // ... some statements } while ($expr); ?> is equal to <?php while(1): ?> some html code <?php if (! $expr) break; endwhile; ?> ---- Server IP: 72.52.91.14 Probable Submitter: 93.85.31.121 ---- Manual Page -- http://php.net/manual/en/control-structures.do.while.php Edit -- https://master.php.net/note/edit/118703 Del: integrated -- https://master.php.net/note/delete/118703/integrated Del: useless -- https://master.php.net/note/delete/118703/useless Del: bad code -- https://master.php.net/note/delete/118703/bad+code Del: spam -- https://master.php.net/note/delete/118703/spam Del: non-english -- https://master.php.net/note/delete/118703/non-english Del: in docs -- https://master.php.net/note/delete/118703/in+docs Del: other reasons-- https://master.php.net/note/delete/118703 Reject -- https://master.php.net/note/reject/118703 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204742) next »