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()
πŸ’¬ Discuss
βœ… Correct Answer: (A) array_unshift()
Explanation: array_unshift() adds one or more elements to the beginning of an array.
Explanation by: Mr. Dubey
array_unshift() adds one or more elements to the beginning of an array.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
80
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate