Q. Which PHP function removes the first element of an array?

  • (A) array_shift()
  • (B) array_pop()
  • (C) array_unshift()
  • (D) array_splice()
πŸ’¬ Discuss
βœ… Correct Answer: (A) array_shift()
Explanation: array_shift() removes the first array element.
Explanation by: Mr. Dubey
array_shift() removes the first array element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
43
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate