-
What will be the output of the following PHP code ?
<?php
$stu = array("Ajit", "Ats", "Aju", "Rahul");
for ($g=0; $g < count($stu) - 1; $g++)
{
if ($stu[$g++] == "Ats")
continue;
printf ($stu[$g]);
}
?>
-
- AjitAtsAjuRahul
- AjitAtsAju
- AtsRahul
- AjitAts
- None of these
Correct Option: C
Only Bale is printed as $g++ is done before printing and then checked.