I have an array of Objects. These Objects have different keys with arrays as value. As an output I need a combined array of all these Array. Example:
[
{
id: 1,
datas: [a,b,c]
},
{
id: 2,
datas: [d,e,f]
},
{
id: 3,
datas: [f,g,h]
}
]
As output I need:
[a,b,c,d,e,f,g,h]
I couldnt find an easy one liner so far. I could iterate over the Array and merging all arrays in a new one. But yeah, I like one liner and as far as I know PHP there is a quick way for that