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 ~