1.

What will be the output of the following PHP code ?
<?php
$emp = array("Neha", "Sumi", "Abhay", "Krishna");
for ($z = 0; $z < count($emp); $z)
{
if ($emp[$z++] == "Abhay")
continue;
printf ($emp[$z]);
}
?>

A. Neha
B. Sumi
C. SumiAbhay
D. Krishna
E. None of these
Answer» D. Krishna


Discussion

No Comment Found

Related MCQs