convert multidimensional array to single array php

Solutions on MaxInterview for convert multidimensional array to single array php by the best coders in the world

showing results for - "convert multidimensional array to single array php"
Tim
21 Apr 2020
1$singleArray = []; 
2foreach ($parentArray as $childArray34    foreach ($childArray as $value5    { 
6    $singleArray[] = $value7    } 
8}
9