Answers for "how to convert two to one diminsional array in 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 "how to convert two to one diminsional array in php"

Browse Popular Code Answers by Language