N
Q. What will be the output of the following PHP code?
Code:
<?php
$user = array("Ats ", "Ajit ", "Rahul ", "Aju ");
for ($str=0; $str < count($user); $str++) {
if ($user[$str] == "Rahul ") continue;
printf ($user[$str]);
}
?>
$user = array("Ats ", "Ajit ", "Rahul ", "Aju ");
for ($str=0; $str < count($user); $str++) {
if ($user[$str] == "Rahul ") continue;
printf ($user[$str]);
}
?>
- Correct Answer - Option(C)
- Views: 128
- Filed under category PHP
Discusssion
Login to discuss.