Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マニュアルには、コロンを使用したほとんどの制御構造の代替構文への参照がありますが、do-while ループの構文は見当たりません。そうすることは可能ですか?このようなもの:
//Simple example $arr = array(1,2,3,4,5,6); $i = 0; do : echo $arr[$i].'<br/>'; $i++; while($i < count($arr)) endwhile;
マニュアルから:-
do-while ループの構文は 1 つだけです。
$i = 0; do { echo $i; } while ($i > 0);