我有一个像下面这样的数组。. .
Array
(
[code] => BILL
[assets] => Array
(
[en] => Array
(
[labels] => Array
(
[datestamp] => April 30, 2013
)
[data] => Array
(
[Equity] => 88.83000000000
[Global] => 10.84000000000
[Other] => 0.33099095766
)
)
)
)
我已经在这个数组上运行了 array_map 函数来删除[en]
数组
$en = array_map(function ($e){ return $e['en']; } , $en );
请注意生成的数组如何截断[code]
fromBILL
到的值B
Array
(
[code] => B
[assets] => Array
(
[labels] => Array
(
[datestamp] => April 30, 2013
)
[data] => Array
(
[Equity] => 88.83000000000
[Global] => 10.84000000000
[Other] => 0.33099095766
)
)
)
关于如何避免这种情况发生的任何提示。它正在[en]
根据需要删除带有键的数组,但我不希望值[code]
被截断。
谢谢。