?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$a1 = array("red", "green");
$a2 = array("blue", "yellow");
print_r(array_merge($a1, $a2));
?>
<?php
$a1 = array("red", "green");
$a2 = array("blue", "yellow");
print_r(array_merge($a1, $a2));
?>
Answer & Solution
Correct Answer:
Option
C
The array_merge() function merges one or more arrays into one array.
Join the Discussion
Login to post a comment or share your explanation.
Login