Q49
What will be the output of the following PHP code ?
A.
Hi is printed 8 times, hello 7 times and then hi 2 times
B.
Hi is printed 10 times, hello 7 times
C.
Hi is printed once, hello 7 times
D.
Hi is printed once, hello 7 times and then hi 2 times
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
The while loop ends only when a } is encountered.