1.

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); ?>  

A. Array ( [0] =&gt; A [1] =&gt; J [2] =&gt; Q [3] =&gt; K [4] =&gt; 2 [5] =&gt; 3 [6] =&gt; 4 [7] =&gt; 5 [8] =&gt; 6 [9] =&gt; 7 [10] =&gt; 8 [11] =&gt; 9 [12] =&gt; 10 )
B. Array ( [0] =&gt; A [1] =&gt; 2 [2] =&gt; J [3] =&gt; 3 [4] =&gt; Q [5] =&gt; 4 [6] =&gt; K [7] =&gt; 5 [8] =&gt; 6 [9] =&gt; 7 [10] =&gt; 8 [11] =&gt; 9 [12] =&gt; 10 )
C. Error
D. Array ( [0] =&gt; 2 [1] =&gt; 3 [2] =&gt; 4 [3] =&gt; 5 [4] =&gt; 6 [5] =&gt; 7 [6] =&gt; 8 [7] =&gt; 9 [8] =&gt; 10 [9] =&gt; A [10] =&gt; J [11] =&gt; Q [12] =&gt; K )
Answer» B. Array ( [0] =&gt; A [1] =&gt; 2 [2] =&gt; J [3] =&gt; 3 [4] =&gt; Q [5] =&gt; 4 [6] =&gt; K [7] =&gt; 5 [8] =&gt; 6 [9] =&gt; 7 [10] =&gt; 8 [11] =&gt; 9 [12] =&gt; 10 )


Discussion

No Comment Found