PHP Coding Questions and Answers – Functions – 6
This set of PHP Question Paper focuses on “Functions – 6”. 1. What will be the output of the following PHP code? <?phpfunction colour(){ $colors = array("red", "green", "blue", "yellow"); foreach ($colors as $value) { echo "$value <br>"; }}colour();?> a) red green blue yellow b) green blue yellow red c) red blue yellow green d) … Read more