?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
$face = array ("A", "J", "Q", "K");
$number = array ("2","3","4", "5", "6", "7", "8", "9", "10");
$cards = array_merge ($face, $number);
print_r ($cards);
?>
<?php
$face = array ("A", "J", "Q", "K");
$number = array ("2","3","4", "5", "6", "7", "8", "9", "10");
$cards = array_merge ($face, $number);
print_r ($cards);
?>
Answer & Solution
Correct Answer:
Option
A
The resulting array will begin with the first input array parameter, appending each subsequent array parameter in the order of appearance.
Join the Discussion
Login to post a comment or share your explanation.
Login