php 如何把索引数组的下标改为具体的键值
把这个数组[0]=>Array([0]=>1436112000)[1]=>Array([0]=>1436716800)[2]=>Array([0]=>1436198400...
把这个数组
[0] => Array
(
[0] => 1436112000
)
[1] => Array
(
[0] => 1436716800
)
[2] => Array
(
[0] => 1436198400
)
[3] => Array
(
[0] => 1436284800
)
[4] => Array
(
[0] => 1435766400
)
[5] => Array
(
[0] => 1436371200
)
[6] => Array
(
[0] => 1435852800
)
[7] => Array
(
[0] => 1436457600
)
[8] => Array
(
[0] => 1435939200
)
[9] => Array
(
[0] => 1436544000
)
)
变成
[0] => Array
(
[today] => 1436112000
)
[1] => Array
(
[today] => 1436716800
)
[2] => Array
(
[today] => 1436198400
)
[3] => Array
(
[today] => 1436284800
)
[4] => Array
(
[today] => 1435766400
)
[5] => Array
(
[today] => 1436371200
)
[6] => Array
(
[today] => 1435852800
)
[7] => Array
(
[today] => 1436457600
)
[8] => Array
(
[today] => 1435939200
)
[9] => Array
(
[today] => 1436544000
)
)
求指教!!!! 展开
[0] => Array
(
[0] => 1436112000
)
[1] => Array
(
[0] => 1436716800
)
[2] => Array
(
[0] => 1436198400
)
[3] => Array
(
[0] => 1436284800
)
[4] => Array
(
[0] => 1435766400
)
[5] => Array
(
[0] => 1436371200
)
[6] => Array
(
[0] => 1435852800
)
[7] => Array
(
[0] => 1436457600
)
[8] => Array
(
[0] => 1435939200
)
[9] => Array
(
[0] => 1436544000
)
)
变成
[0] => Array
(
[today] => 1436112000
)
[1] => Array
(
[today] => 1436716800
)
[2] => Array
(
[today] => 1436198400
)
[3] => Array
(
[today] => 1436284800
)
[4] => Array
(
[today] => 1435766400
)
[5] => Array
(
[today] => 1436371200
)
[6] => Array
(
[today] => 1435852800
)
[7] => Array
(
[today] => 1436457600
)
[8] => Array
(
[today] => 1435939200
)
[9] => Array
(
[today] => 1436544000
)
)
求指教!!!! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询