Q. Which function is used to convert a JSON string into a PHP variable?
β
Correct Answer: (A)
json_decode()
Explanation: json_decode() decodes a JSON string into a PHP variable.