So I have a multidimensional array:
Array
(
[0] => Array
(
[User_ID] => 1
[Username] => A NAME
)
[1] => Array
(
[User_ID] => 2
[Username] => ANOTHER NAME
)
)
I have seen how to flatten it...but say I want to do that and make it like so:
Array
(
[1(As in the User_ID value)] => A NAME
[2] => ANOTHER NAME
)
Essentially creating a single array with the User_ID as the key and the Username as the value. How would I go about doing something like that? If it helps the list of IDs and Names could potentially be hundreds long, so it isn't a static number of items I am working with.