Zend
200-710 · Question #182
After performing the following operations: ``php $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.
Arrays
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
(26 responses)- A8% (2)
- B12% (3)
- C77% (20)
- D4% (1)
Topics
#array_flip#array_keys#array reindexing
Community Discussion
No community discussion yet for this question.