Q. What does the PHP function json_encode() do?
β
Correct Answer: (A)
Converts a PHP variable into JSON format
Explanation: json_encode() converts PHP arrays or objects to JSON strings.