Third-party interface-request the POST parameter of the PHP interface?

Source: Internet
Author: User
When requesting the PHP interface, if the interface requires more complex data, such as a 3-dimensional array, should I directly POST a 3D array, or convert the 3D array into JSON first, and then POST it? Why is it good? When a PHP interface is requested for program maintenance and security consideration, if the interface requires complicated data, such as a three-dimensional array, a three-dimensional array should be directly POST at this time, or is it possible to convert a 3D array to JSON first and then POST it? Why is it good? From the perspective of program maintenance and security

Reply content:

When requesting the PHP interface, if the interface requires more complex data, such as a 3-dimensional array, should I directly POST a 3D array, or convert the 3D array into JSON first, and then POST it? Why is it good? From the perspective of program maintenance and security

Json format

Complicated structure. json is recommended.

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.