1.

What will be the output of the following PHP code?
 <?php $array1 = array ("KA", "LA", "CA", "MA", "TA"); $array2 = array ("KA", "IA", "CA", "GA", "TA"); $inter = array_intersect ($array1, $array2); print_r ($inter); ?>  

A. Array ( [0] =&gt; KA [1] =&gt; LA [2] =&gt; CA [3] =&gt; MA [4] =&gt; TA [5] =&gt; IA [6] =&gt; GA )
B. Array ( [0] =&gt; KA [2] =&gt; CA [4] =&gt; TA )
C. Array ( [1] =&gt; IA [3] =&gt; GA )
D. Array ( [1] =&gt; LA [3] =&gt; MA )
Answer» C. Array ( [1] =&gt; IA [3] =&gt; GA )


Discussion

No Comment Found