-
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]);
}
?>
-
- Neha
- Sumi
- SumiAbhay
- Krishna
- None of these
Correct Option: C
z is incremented only inside loop z the if condition.