| What are the built in function to handle JSON in PHP?
PHP has some built-in functions to hanlde JSON. And below are two functions to handle JSON:-
(1)json_encode()
(2)json_decode()
(1)json_encode():-In PHP json_encode() function is used to encode a value to JSON format.
(2)json_decode():-In PHP json_decode() function is used to decode a JSON object into a PHP object or an associative array. | | |