Q. Which PHP function checks if a string is a valid JSON?
β
Correct Answer: (D)
json_last_error()
Explanation: json_last_error() checks JSON parsing errors after decoding.