Examveda
Examveda

What will be the output of the following PHP code ?
<?php
for ($count = 0; $count < 3;$count++);
{
    print "hi";continue;print "hello";
}
?>

A. hihihi

B. hihellohihellohihello

C. hellohellohello

D. hi

Answer: Option A

Solution(By Examveda Team)

When continue is encountered it skips to the next iteration

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

Join The Discussion

Related Questions on Control Structures(Loop in PHP)