Problems related to converting a 3-dimensional array into a data record

Source: Internet
Author: User
Turn a 3-dimensional array into a data problem two-dimensional array into a data record I will. For example, for the following data, I can obtain the following data type: paste data: [Baidu paste] = & gt; http://tieba.baidu.com/compared to your phpcodearray ([paste it] = & gt; array turns a three-dimensional Array into a data record
Convert a two-dimensional array into one data record. For example, the following data can be obtained.
Type: post it
Data: [Baidu Post Bar] => http://tieba.baidu.com/

For example, you
PHP code
  Array ([Post it] => Array ([Baidu Post it] => http://tieba.baidu.com/) [search for Tibet] => Array ([baidu search for Tibet] => http://cang.baidu.com /))


But now there is an array like this:
PHP code
  Array ([Post it] => Array ([Baidu Post it] => http://tieba.baidu.com /) [All] => Array ([Chongqing] => Array ([Baidu souzang] => http://cang.baidu.com /)))


I want this data.
Type: all $ Chongqing
Data: [Baidu souzang] => http://cang.baidu.com/


Separate the upper-level classification with $.
My main problem is that I don't know how to traverse this 3D array ???
For convenience, please give me some advice,
How to add a two-dimensional data ATO a key value in another two-dimensional array B to form a three-dimensional array ???


------ Solution --------------------
Why don't I solve it ~

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.