PHP Control Structures (Loop)
What will be the output of the following PHP code ?
for (1; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";

Infinite loop
After for loop
In for loop
In for loopAfter for loop

ANSWER DOWNLOAD EXAMIANS APP

PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$a = array("hi", "hello", "bye");
for (;count($a) < 5;) {
if (count($a) == 3)
print $a;
}

hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely
(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)…infinitely
no output
ArrayArrayArrayArrayArrayArray….infinitely

ANSWER DOWNLOAD EXAMIANS APP