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

After for loopAfter for loopAfter for loop...infinitely
After for loop
In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop...infinitely
In for loopIn for loopIn for loopIn for loop...infinitely

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
ArrayArrayArrayArrayArrayArray….infinitely
(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)(“hi”,”hello”,”bye”)…infinitely

ANSWER DOWNLOAD EXAMIANS APP