πŸ“Š PHP
Q. Which PHP function searches a value and returns its key?
  • (A) in_array()
  • (B) array_key_exists()
  • (C) array_search()
  • (D) search_array()
πŸ’¬ Discuss
βœ… Correct Answer: (C) array_search()

Explanation: array_search() returns the key if the value is found.

Explanation by: Kanak Sharma
array_search() returns the key if the value is found.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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