πŸ“Š PHP
Q. Which PHP function sends a JSON response header?
  • (A) json_header()
  • (B) header('application/json')
  • (C) header('Content-Type: application/json')
  • (D) send_json()
πŸ’¬ Discuss
βœ… Correct Answer: (C) header('Content-Type: application/json')

Explanation: This sets the response content type to JSON.

Explanation by: Admin
This sets the response content type to JSON.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
1
Total Visits
πŸ“½οΈ
8 h ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
91%
Success Rate