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

In for loop
After for loop
Infinite 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
no output
(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)…infinitely
ArrayArrayArrayArrayArrayArray….infinitely

ANSWER DOWNLOAD EXAMIANS APP