note 120271 added to control-structures.do.while

From: Date: Sun, 04 Dec 2016 03:49:46 +0000
Subject: note 120271 added to control-structures.do.while
Groups: php.notes 
Request: Send a blank email to php-notes+get-207972@lists.php.net to get a copy of this message
What actually surprised me: There is no alternative-syntax or template syntax for a do-while-loop. So you can write <?php while ($a < 10) : $a++; endwhile; ?> But this won't work: <?php do : $a++ while ($a <= 10); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 185.66.194.65 ---- Manual Page -- http://php.net/manual/en/control-structures.do.while.php Edit -- https://master.php.net/note/edit/120271 Del: integrated -- https://master.php.net/note/delete/120271/integrated Del: useless -- https://master.php.net/note/delete/120271/useless Del: bad code -- https://master.php.net/note/delete/120271/bad+code Del: spam -- https://master.php.net/note/delete/120271/spam Del: non-english -- https://master.php.net/note/delete/120271/non-english Del: in docs -- https://master.php.net/note/delete/120271/in+docs Del: other reasons-- https://master.php.net/note/delete/120271 Reject -- https://master.php.net/note/reject/120271 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#207972) next »