Zend
200-550 · Question #165
What will be the result of the following operation? array_combine(array("A","B","C"), array(1,2,3));
The correct answer is C. array("A"=>1,"B"=>2,"C"=>3). See the full explanation below for the reasoning.
Question
What will be the result of the following operation? array_combine(array("A","B","C"), array(1,2,3));
Options
- Aarray("A","B","C",1,2,3)
- Barray(1,2,3,"A","B",C")
- Carray("A"=>1,"B"=>2,"C"=>3)
- Darray(1=>"A",2=>"B",3=>"C")
- Earray(1,2,3)
How the community answered
(25 responses)- A16% (4)
- C72% (18)
- D4% (1)
- E8% (2)
Community Discussion
No community discussion yet for this question.