php - Alternative syntax for do-while loop (using colon) -


the manual has references alternative syntax control structures using colons, don't see 1 do-while loop. possible so? this:

//simple example $arr = array(1,2,3,4,5,6); $i = 0;  :     echo $arr[$i].'<br/>';     $i++; while($i < count($arr)) endwhile; 

from manual:-

there 1 syntax do-while loops:

$i = 0; {     echo $i; } while ($i > 0); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -