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

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

ANSWER DOWNLOAD EXAMIANS APP