while loop php

40

do while php -

<?php
$i = 0;
do {
    echo $i;
} while ($i > 0);
?>

while in php -

<?php 
  	$limit = 100;
	for($counter,$counter<=$limit;$counter++){
      // code
    }
  ?>

Comments

Submit
0 Comments