nerdexam
Zend

200-550 · Question #167

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.

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

(47 responses)
  • A
    2% (1)
  • B
    79% (37)
  • C
    4% (2)
  • D
    2% (1)
  • E
    13% (6)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice