ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code ?
<?php
$array = array("red", "green");
array_push($array, "blue", "yellow");
print_r($array);
?>

Answer & Solution
Correct Answer: Option A
The array_push() function inserts one or more elements to the end of an array.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.