A

Admin • 828.03K Points
Coach

Q. Which function is used to remove the last element from an array?

  • (A) array_pop()
  • (B) array_shift()
  • (C) unset()
  • (D) remove_last()
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
array_pop() removes the last element of an array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.