I have an array of associative arrays like this:
$array = [
["foobar" => "asd"],
["foobar" => "abvc"],
["foobar" => "test123"],
];
I would like to have the column values used as keys and values in the end result.
[
'asd' => 'asd',
'abvc' => 'abvc',
'test123' => 'test123',
];
I tried using array_flip()
while looping over, but I did not manage to get the desired output.