Array(
[0] => Array
(
[0] => 2017-10-05
[1] => 24,57
[2] => 24,65
[3] => 23,86
)
[2] => Array
(
[0] => 2017-10-04
[1] => 24,38
[2] => 24,675
[3]=> 24,24
)
)
I want to convert this into
Array(
[2017-10-05] => Array
(
[0] => 24,57
[1] => 24,65
[2] => 23,86
)
[2017-10-04] => Array
(
[0] => 24,38
[1] => 24,675
[2] => 24,24
)
This question similar to How to make array first value as key for the second value as value in php array. But i can't use array_column in my case,