Zend
200-710 · Question #189
What function can reverse the order of values in an array so that keys are preserved?
The correct answer is B. array_reverse(). See the full explanation below for the reasoning.
Arrays
Question
What function can reverse the order of values in an array so that keys are preserved?
Options
- Aarray_flip()
- Barray_reverse()
- Crsort()
- Dkrsort()
- EArray_multisort()
How the community answered
(24 responses)- A4% (1)
- B79% (19)
- D4% (1)
- E13% (3)
Topics
#array_reverse#key preservation#array ordering
Community Discussion
No community discussion yet for this question.