&lt;?php$i = &quot;&quot;;while &#40;$i&#41;&#123;       print &quot;hi&quot;;&#125; while&#40;$i &lt; 8&#41;    $i++;print &quot;hello&quot;;?&gt;
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
Answer:A
&lt;?php$i = &quot;&quot;;while &#40;$i&#41;&#123;       print &quot;hi&quot;;&#125; while&#40;$i &lt; 8&#41;    $i++;print &quot;hello&quot;;?&gt;
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
Explanation: The while loop ends only when a } is encountered.