I'm looking for an easy way to transform the keys of an associative array. I want the key of the sub array to be te first value of himself. Is it possible to change this :
Array
(
[0] => Array
(
[symbol] => ETHBTC
[status] => TRADING
)
[1] => Array
(
[symbol] => LTCBTC
[status] => TRADING
)
)
to this :
Array
(
[ETHBTC] => Array
(
[status] => TRADING
)
[LTCBTC] => Array
(
[status] => TRADING
)
)