Q. Which PHP function returns the key of the current array element?

  • (A) key()
  • (B) index()
  • (C) current_key()
  • (D) array_key()
πŸ’¬ Discuss
βœ… Correct Answer: (A) key()
Explanation: key() returns the key of the current element.
Explanation by: Kanak Sharma
key() returns the key of the current element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
35
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Kanak Sharma
Publisher
πŸ“ˆ
90%
Success Rate