PHP Control Structures (Loop)
What will be the output of the following PHP code ?
for ($x = 1; $x < 10; $x++)
for ($y = 1; $y < 5; $y++)
print "Hello";

Hello….45 times
Hello….40 times
Hello….36 times
Hello….50 times

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
no output
ArrayArrayArrayArrayArrayArray….infinitely
hihellobyehihellobyehihellobyehihellobyehihellobyehihellobye…..infinitely

ANSWER DOWNLOAD EXAMIANS APP