<? $i = 1; while ($i <= 10) { print $i++; /* the printed value would be $i before the increment (post-increment) */ } ?>
<? $i = 0; do { print $i++; } while ($i< 10); ?>