A

Admin • 832.27K Points
Coach

Q. Which function is used to reverse an array?

  • (A) reverse_array()
  • (B) array_reverse()
  • (C) rev_array()
  • (D) invert_array()
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

array_reverse() returns an array with elements in reverse order.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.