Communication instance between PHP and jsjson

Source: Internet
Author: User
Brief introduction to json. json (objectnotation) is a lightweight data exchange format, which is easy for people to read and write, and easy for machine parsing and generation. it is based on javascriptprogramminglan... brief introduction to json. json (object notation) is a lightweight data exchange format that is easy for people to read and write, and easy for machine parsing and generation. it is based on javascript programming language, A subset of standard ECMA-262 3rd edition-December 1999, json uses a completely language-independent text format, but also uses a family of c languages like c, c ++, c #, java, javascript, perl, python, etc.). These features make json an ideal data exchange language.

Json is constructed in two structures:

A collection of name/value pairs. in different languages, it is understood as an object, record ), struct, dictionary, hash table, keyed list, or associative array ).

An ordered list of values. In most languages, it is considered as an array ).

Php file code:

 

Js code:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.