PHP Tutorial

A web server programming language.

PHP JSON

PHP JSON

JSON stands for JavaScript Object Notation, and is a syntax for storing and exchanging data.

Since the JSON format is a text-based format, it can easily be sent to and from a server, and used as a data format by any programming language.

PHP JSON Functions

  • json_encode() - Used to encode a value to JSON format
  • json_decode() - Used to decode a JSON object into a PHP object or an associative array

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics