PHP Control Structures (Loop)
What will be the output of the following PHP code ?
$user = array("Ashley", "Bale", "Shrek", "Blank");
for ($x = 0; $x < count($user); $x++) {
if ($user[$x] == "Shrek")
continue;
printf ($user[$x]);
}

AshleyBale
AshleyBaleShrek
AshleyBaleBlank
No output

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

ANSWER DOWNLOAD EXAMIANS APP