php endwhile

Solutions on MaxInterview for php endwhile by the best coders in the world

showing results for - "php endwhile"
Laura
12 Nov 2016
1<?php
2/* example 1 */
3
4$i 1;
5while ($i <= 10) {
6    echo $i++;  /* the printed value would be
7                   $i before the increment
8                   (post-increment) */
9}
10
11/* example 2 */
12
13$i 1;
14while ($i <= 10):
15    echo $i;
16    $i++;
17endwhile;
18?>