Home »
PHP »
PHP Programs
PHP JSON Programs
JSON stands for JavaScript Object Notation. JSON is a text-based data interchange format, it's a replacement of XML. With PHP, JSON is used to read data from a PHP web server and display the data on a webpage. PHP has library functions to work with JSON.
This section contains the PHP solved programs on JSON, practice these programs to learn the concept of JSON with PHP. Each program has solved code, output, and explanation.
List of PHP JSON Programs
- PHP program to convert an associated array into JSON format
- PHP program to demonstrate the json_encode() function with indexed array of strings
- PHP program to demonstrate the json_encode() function with multi-dimensional array
- PHP program to decode the JSON string into an associative array
- PHP program to decode the JSON string into a multi-dimensional array