Q. Which PHP function outputs JSON with correct headers?
β
Correct Answer: (D)
Both 1 and 3
Explanation: Header + json_encode ensures proper JSON response.