PHP Loop Statement

while loop

The number is : 1
The number is : 2
The number is : 3
The number is : 4
The number is : 5
The number is : 6
The number is : 7
The number is : 8
The number is : 9
The number is : 10

Do while loop

The number is : 6

For loop

The number is : 0
The number is : 10
The number is : 20
The number is : 30
The number is : 40
The number is : 50
The number is : 60
The number is : 70
The number is : 80
The number is : 90
The number is : 100

Break

The number is : 0
The number is : 1
The number is : 2
The number is : 3

Continue

The number is : 0
The number is : 1
The number is : 2
The number is : 3
The number is : 5
The number is : 6
The number is : 7
The number is : 8
The number is : 9