Zend
200-530 · Question #547
Zend 200-530 Exam You run the following PHP script: <?php $array1 = array ('a' => 20, 30, 35); $array2 = array ('b' => 20, 35, 30); $array = array_intersect_assoc ($array1, $array2); var_dump…
The correct answer is C. array(0) { }. See the full explanation below for the reasoning.
Question
Zend 200-530 Exam You run the following PHP script: <?php $array1 = array ('a' => 20, 30, 35); $array2 = array ('b' => 20, 35, 30); $array = array_intersect_assoc ($array1, $array2); var_dump ($array); ?> What will be the output?
Options
- AThe script will throw an error message.
- Barray(3) { ["'a'"]=> int(20) [0]=> int(30)
- Carray(0) { }
- Darray(1) { ["'a'"]=> int(20)}
How the community answered
(22 responses)- A14% (3)
- B5% (1)
- C77% (17)
- D5% (1)
Community Discussion
No community discussion yet for this question.