PHP
WHILE and DO WHILE loops in PHP
WHILE, DO WHILE loops
Code example for WHILE and DO WHILE
Code examples for While and DO WHILE in PHP
<?php $count = 1; echo "Loop using WHILE <br/><br/>"; while ($count <= 25){ echo "Counter value = ". $count. "<br/>"; $count ++ ; } echo "<br/><br/>Loop using DO WHILE <br/><br/>"; $count = 1; do { echo "Counter value = ". $count. "<br/>"; $count ++ ; } while ($count <= 25);