nerdexam
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)
  • A
    4% (1)
  • B
    79% (19)
  • D
    4% (1)
  • E
    13% (3)

Topics

#array_reverse#key preservation#array ordering

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice