我有一個多維數組,子數組由更多的值組成,我希望所有隻有一個值的子數組被轉換爲一個字符串。如何成功掃描多維數組以獲得結果?將只有一個值的子數組轉換爲字符串
下面是數組的一小部分,因爲它是現在。
[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