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

After for loop
In for loopAfter for loop
In for loop
Infinite 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;
}

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

ANSWER DOWNLOAD EXAMIANS APP