1.

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]);
}
?>

A. Error
B. Rahul
C. Ats Ajit Aju
D. Ats Ajit Rahul Aju
E. None of these
Answer» D. Ats Ajit Rahul Aju


Discussion

No Comment Found

Related MCQs