Q. Which function is used to convert an array to a JSON string?
β
Correct Answer: (A)
json_encode()
Explanation: json_encode() returns the JSON representation of a value.