A
Q. Output of the following PHP code?
Code:
$user = array(“Ashley”, “Bale”, “Shrek”, “Blank”);
for ($x=0; $x < count($user); $x++) { if ($user[$x] == “Shrek”) continue; printf ($user[$x]); } ?>
for ($x=0; $x < count($user); $x++) { if ($user[$x] == “Shrek”) continue; printf ($user[$x]); } ?>
- Correct Answer - Option(C)
- Views: 24
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.