Converts a two-dimensional array into a string.

Source: Internet
Author: User
Converts a two-dimensional Array to a string PHPcodeArray ([0] & gt; Array ([0] & gt; www. movso. us [1] & gt; fast-paced movies) [1] & gt; Array ([0] & gt; www. kby converts a two-dimensional array into a string.
PHP code
  Array ([0] => Array ([0] => www. movso. us [1] => fast-paced movies) [1] => Array ([0] => www.kbysq.com [1] => Latest Movies) [2] => Array ([0] => www.bbying.com [1] => url) [3] => Array ([0] => www.tccok.com [1] => beet film ,) [4] => Array ([0] => www.dy527.com [1] => online download ))


How can I insert this two-dimensional array into a string and convert it into a two-dimensional array when used?

I search for a word, and then generate a list. if there is a better way, let's talk about it.

------ Solution --------------------
Serialize ($ arr );

Use unserialize () to restore

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.