, Passing arrays between php

Source: Internet
Author: User
For help, an Array is transmitted between php. as described in the title, for example, in the php1 file, there are similar arrays such as $ Array [& quot; a & quot;] 1; how to obtain the array in php2 .. It is best to pass it through the post method .. ------ Solution ------------------ 1. most closely: php1 requires php21_dephp2 after it is finished; 2. closeness: jump through the browser for help, and passing arrays between php;
As described in the title, for example, in the php1 file, there are similar arrays such as $ Array ["a"] = 1;
How to obtain the array in php2 .. It is best to pass it through the post method ..

------ Solution --------------------
1. the most closely related: php2 is required when php1 is finished.
Include 'php2 ';

2. Tight: jump through the browser
Use session

3. generally, values are transmitted by uri.
Php provides the http_build_query function to construct the uri parameter string.

4. Loose: http requests
Php provides curl and sock function groups

5. Loose: Use soap and xmlprc
Php provides corresponding functions and classes.

Related Article

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.