Q47
What will be the output of the following PHP code ?
A.
0
B.
infinite loop
C.
01
D.
1
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
As it is a post increment, it checks and then does not enter the loop, thus prints only 1.