-
What will be the output of the following PHP code ?
<?php
$name = array("Abhay", "Sujit");
array_push($name, "Neha", "Reema");
print_r($name);
?>
-
-
Array
(
[0] => Abhay
[1] => Sujit
[2] => Neha
[3] => Reema
) -
Array
(
[2] => Neha
[3] => Reema
) -
Array
(
[0] => Abhay
[1] => Sujit
) -
Array
(
[0] => Abhay
[3] => Reema
) - None of these
-
Correct Option: A
The array_push() function inserts one or more elements to the end of an array.