Is there a PHP array function to compress the following array structure;
array:2 [▼
  0 => array:2 [▼
    0 => {#90 ▶}
    1 => {#91 ▶}
  ]
  1 => array:5 [▼
    0 => {#92 ▶}
    1 => {#93 ▶}
    2 => {#94 ▶}
    3 => {#95 ▶}
    4 => {#96 ▶}
  ]
]
In to something like this;
array:7 [▼
    0 => {#90 ▶}
    1 => {#91 ▶}
    3 => {#92 ▶}
    4 => {#93 ▶}
    5 => {#94 ▶}
    6 => {#95 ▶}
    7 => {#96 ▶}
  ]
]
Sorry this is a dd (die and dump) using Laravel but I think you get the general idea of what I am trying to achieve.
Also note, this may not always be the structure of the passed in data. Sometimes it will only be a single dimension array. So this will cause an error;
$domain->questions = call_user_func_array('array_merge', $domain->questions);