Related Functions

json_encode

PHP 5.2.0+

Converts PHP variables into JSON-formatted strings, enabling seamless data exchange between PHP applications and systems that consume JSON.

Description

The json_encode() Converts PHP variables into JSON-formatted strings, enabling seamless data exchange between PHP applications and systems that consume JSON.

Example