我有一个多维数组,子数组由更多的值组成,我希望所有只有一个值的子数组被转换为一个字符串。如何成功扫描多维数组以获得结果?将只有一个值的子数组转换为字符串
下面是数组的一小部分,因为它是现在。
[1] => Array
(
[name] => Array
(
[0] => Person's name
)
[organisation] => Array
(
[0] => This is their organisation
[1] => aka something else
)
[address] => Array
(
[0] => The street name
[1] => The town name
)
[e-mail] => Array
(
[0] => [email protected]
)
)
,这里是我怎么想它最终
[1] => Array
(
[name] => Person's name
[organisation] => Array
(
[0] => This is their organisation
[1] => aka something else
)
[address] => Array
(
[0] => The street name
[1] => The town name
)
[e-mail] => [email protected]
)
非常感谢火箭!完美地工作! – Paul 2010-08-30 17:59:58