πŸ“Š PHP
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

πŸ‘οΈ
21
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
89%
Success Rate