Q. Which PHP function returns the last element of an array without removing it?

  • (A) end()
  • (B) array_last()
  • (C) array_pop()
  • (D) last()
πŸ’¬ Discuss
βœ… Correct Answer: (A) end()
Explanation: end() moves the internal pointer to the last element.
Explanation by: Kanak Sharma
end() moves the internal pointer to the last element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
57
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
98%
Success Rate