-
What will be the output of the following PHP code?
<?php
$Student1 = array("Neha", "Rahul");
$Student2 = array("Sujit", "Vivek", "Rohan");
print_r(array_merge($Student1, $Student2));
?>
-
-
Array
(
[0] => Neha
[4] => Rohan
) -
Array
(
[0] => Neha
[1] => Rahul
[2] => Sujit
) -
Array
(
[0] => Neha
[1] => Rahul
[2] => Sujit
[3] => Vivek
[4] => Rohan
) -
Array
(
[0] => Neha
[2] => Sujit
[4] => Rohan
) - None of these
-
Correct Option: C
The array_merge() function merges one or more arrays into one array.