-
What will be the output of the following PHP code?
<?php
$user = array("Ats ", "Ajit ", "Rahul ", "Aju ");
for ($str=0; $str < count($user); $str++) {
if ($user[$str] == "Rahul ") continue;
printf ($user[$str]);
}
?>
-
- Error
- Rahul
- Ats Ajit Aju
- Ats Ajit Rahul Aju
- None of these
Correct Option: C
The continue statement causes execution of the current loop iteration to end and commence at the beginning of the next iteration.