πŸ“Š PHP
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]); } ?>
  • (A) AshleyBale
  • (B) ShrekBlank
  • (C) AshleyBaleBlank
  • (D) Shrek
πŸ’¬ Discuss
βœ… Correct Answer: (C) AshleyBaleBlank

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
144
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
88%
Success Rate