SyntaxFix
Write A Post
Hire A Developer
Questions
Native JSON support has been included in PHP since 5.2 in the form of methods json_encode() and json_decode(). You would use the first to output a PHP variable in JSON.
json_encode()
json_decode()