我有這個數組:我該如何簡化這個數組?
Array
(
[0] => Array
(
[tag_id] => 1
)
[2] => Array
(
[tag_id] => 3
)
[22] => Array
(
[tag_id] => 44
)
[23] => Array
(
[tag_id] => 45
)
[25] => Array
(
[tag_id] => 47
)
[26] => Array
(
[tag_id] => 48
)
)
我想它完成的是這個樣子所以其簡單對我來說,循環和插入的每個值轉換成數據庫:
Array
(
[0] => 1
[1] => 3
[2] => 44
[3] => 45
[4] => 47
[5] => 48
)
您是如何在第一個位置創建數組的?或者這些數據是發送給您的,即您無法控制?與 – 2010-08-09 21:17:49