Answers for "keep only certain values multi multidimensional array 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 "keep only certain values multi multidimensional array php"

Browse Popular Code Answers by Language