【发布时间】:2018-07-02 11:28:51
【问题描述】:
我有一个这样的数组:
array(2) {
["xxx"]=>
array(2) {
["yyy"]=>
array(1) {
["text"]=> string(13) "test offline2"
}
["yyy2"]=>
array(1) {
["text"]=> string(12) "test offline"
}
}
["usual_name"]=> string(12) "test offline"
}
我想要一个这样的新数组:
array(3) {
["xxx.yyy"]=> string(12) "test offline"
["xxx.yyy2"]=> string(12) "test offline"
["usual_name"]=> string(12) "test offline"
}
如果有人可以帮助我,请!
【问题讨论】:
标签: php arrays recursion key concatenation