I have an array with following format.
Array
(
[0] => Array
(
[keyword] => thumbnail_follow
[content] => width
)
[1] => Array
(
[keyword] => thumbnail_resize
[content] => yes
)
)
My desire output is following
Array
(
[thumbnail_follow] => width
[thumbnail_resize] => yes
)
What I have tried so far?
array_shift()but this remove duplicate keys and output becomeArray ( [keyword] => thumbnail_follow [content] => width )array_columnI am able to get only single type of values. For examplearray_column($array, 'keyword')Array ( [0] => thumbnail_follow [1] => thumbnail_resize )
Using array_column and loop, I can get desire output but there must be some more efficient way to do it but I am known from this
Can you please help me guys?