Vidyalelo
PHP · Q63

Control Structures(Loop In PHP)

Programming · PHP · question 63

Q63

What will be the output of the following PHP code ?

A.
123456789101112
B.
12345678910
C.
1234567891011
D.
infinite loop
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The value of x is decremented thus making it an infinite loop.