A

Admin • 828.03K Points
Coach

Q. Which of the following is used to add an element at the beginning of an array?

  • (A) array_unshift()
  • (B) array_push()
  • (C) array_pop()
  • (D) array_shift()
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
array_unshift() adds one or more elements to the beginning of an array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.