πŸ“Š PHP
Q. What will be the output of the following PHP code?
Code:
<?php
function colour()
{ 
    $colors = array("red", "green", "blue", "yellow"); 
    foreach ($colors as $value)
    {
        echo "$value <br>";
    }
}
colour();
?> 
  • (A) red green yellow blue
  • (B) green blue yellow red
  • (C) red green blue yellow
  • (D) red blue yellow green
πŸ’¬ Discuss
βœ… Correct Answer: (C) red green blue yellow

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
178
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
82%
Success Rate