【发布时间】:2010-06-29 21:56:11
【问题描述】:
对不起,糟糕的标题,我当时能想到的最好的!假设我有一个像这样的“路径”数组;
array('this', 'is', 'the', 'path')
最终得到以下数组的最有效方法是什么?
array(
'this' => array(
'is' => array(
'the' => array(
'path' => array()
)
)
)
)
【问题讨论】:
-
您想通过该路径获取值、设置值还是构建这样的结构?