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

Ngân Lam

New member
What will be the output of the following PHP code?
Code:
<?php
$array = array("red", "green");
array_push($array, "blue", "yellow");
print_r($array);
?>
A. Array ( [0] => red [1] => green [2] => blue [3] => yellow )
B. Array ( [0] => blue [1] => yellow [2] => red [3] => green )
C. Array ( [0] => red [1] => green )
D. Array ( [0] => blue [1] => yellow )
 

Tìm kiếm

Back
Top