Answers for "multidimensional indexed array to one dimensional php"

PHP
2

convert multidimensional array to single array php

$singleArray = []; 
foreach ($parentArray as $childArray) 
{ 
    foreach ($childArray as $value) 
    { 
    $singleArray[] = $value; 
    } 
}
Posted by: Guest on October-13-2020

Code answers related to "multidimensional indexed array to one dimensional php"

Browse Popular Code Answers by Language