πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$arr = array("Hello", "MCQ", "Buddy");
foreach ($arr as $val) 
{
    if (count($arr) == 2)
	    print $val;         
}
?>
  • (A) Nothing
  • (B) Error
  • (C) HelloMCQBuddy
  • (D) MCQBuddyHello
πŸ’¬ Discuss
βœ… Correct Answer: (D) MCQBuddyHello

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
217
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
81%
Success Rate