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

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;
}

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

ANSWER DOWNLOAD EXAMIANS APP