Convert a multidimensional array (php)

QuestionsConvert a multidimensional array (php)
sethbeckerman5 Staff asked 7 years ago

im currently struggling with converting this array in PHP to a more simplified one. This is my array to start with stored in :

I would like to transfrom this array to this simplified one :

I sadly don't know were to start… Could somebody help me out?

Edit: After I converted the array via array_column() oder foreach loop I still cant get the right data with $array_new['name-2'];


View on Stack Overflow