Zend
200-550 · Question #160
After performing the following operations: $a = array('a', 'b', 'c'); $a = array_keys(array_flip($a)); What will be the value of $a?
The correct answer is C. array('a', 'b', 'c'). See the full explanation below for the reasoning.
Question
After performing the following operations:
$a = array('a', 'b', 'c'); $a = array_keys(array_flip($a)); What will be the value of $a?
Options
- Aarray('c', 'b', 'a')
- Barray(2, 1, 0)
- Carray('a', 'b', 'c')
- DNone of the above
How the community answered
(25 responses)- A16% (4)
- B8% (2)
- C72% (18)
- D4% (1)
Community Discussion
No community discussion yet for this question.