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

πŸ‘οΈ
32
Total Visits
πŸ“½οΈ
5 mo ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
82%
Success Rate