Examveda
Examveda

What will be the output of the following PHP code ?
<?php
for(;;)
{
   print "10";
}
?>

A. 10

B. infinite loop

C. no output

D. error

Answer: Option B

Solution(By Examveda Team)

There is no check condition to stop the execution of the loop.

This Question Belongs to PHP >> Control Structures(Loop In PHP)

Join The Discussion

Related Questions on Control Structures(Loop in PHP)