-
What will be the output of the following PHP code ?
<?php
$emp = array("Ajit", "Ats", "Aju","Rahul");
for ($p = 0; $p < count($emp); $p++)
{
if ($emp[$p] == "Rahul")
continue;
printf ($emp[$p]);
}
?>
-
- AjitAtsAjuRahul
- AjuAtsRahul
- Error
- Nothing
- AjitAtsAju
Correct Option: E
Only the Shrek is skipped due to the continue statement.