: This article mainly introduces how high three nights works-JSON. if you are interested in the PHP Tutorial, please refer to it. Hi
I went to eat hot pot last night. Yes, you didn't guess it was wrong. I was in Chengdu.
There will be a treat for senior students tonight, and there will be a hot pot for friends tomorrow. Should the busy week have to be high for three consecutive nights (single graduate dogs are so easy to satisfy ). So I had to leave my business to write and write (not to write ...)
1. JSON
----- Introduction -----
Javascript Object Notation, a lightweight data exchange format
---
Basic syntax: Four Basic rules
The parallel data are separated by commas; the ING is represented by colons; the parallel data set (array) is represented by []; the ing set (object) is represented {}
For example, Beijing has an area of 16800 square kilometers and a resident population of 16 million people. Shanghai has an area of 6400 square kilometers and a resident population of 18 million people.
In JSON format:
[
{"City": "Beijing", "area": 16800, "population": 1600 },
{"City": "Shanghai", "area": 6400, "population": 1800}
]
---
Advantages: simple format, easy to read/write and transmit; support for multiple languages
Disadvantage: the character set must be Unicode; the syntax is too rigorous
The above describes how high three nights can be like this-JSON, including content, hope to be helpful to friends who are interested in PHP tutorials.