What will be the output of the following PHP code?

🎲 Try a Random Question  |  Total Questions in Quiz: 62  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
PHP Programming Basics Practice Test: PHP Arrays and Functions — practice the complete quiz, review flashcards, or try a random question.

Quiz on arrays in PHP and other in built functions of PHP. In PHP, an array is a fundamental data structure that stores and organizes multiple values under a single variable. It provides a convenient way to manage and manipulate collections of data, making it an essential concept in PHP development.  PHP has over 1,000 built-in functions that can be called directly from within a script. These functions are pre-defined and included within the core PHP language. They can be used without any special requirements or additional installation.  Some examples of built-in functions include: String... Show more

What will be the output of the following PHP code?<br><br><?php<br>$a1 = array("red", "green");<br>$a2 = array("blue", "yellow");<br>$a3 = array_merge($a1, $a2);<br>$a4 = array("a", "b", "c", "d");<br>$a = array_combine($a4, $a3);<br>print_r($a);<br>?>