我有一个看起来像这样的数组:
MyArray (
[0] => Array (
[board_id] => 1047999
[added_date] => 2013-02-28 11:14:02
[type] => 4
)
[1] => Array (
[board_id] => 1047999
[added_date] => 2013-02-28 11:14:02
[type] => 1
)
[2] => Array (
[board_id] => 1047999
[added_date] => 2013-02-28 11:14:02
[type] => 4
)
[3] => Array (
[board_id] => 1047999
[added_date] => 2013-02-28 11:14:02
[type] => 1
)
)
如何拆分此数组type
并保持完全相同的数组结构?即我将有两个子数组的 MyArrayT4 和两个子数组的 MyArrayT1?
蒂亚!