Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert multidimensional array to single array php

$singleArray = []; 
foreach ($parentArray as $childArray) 
{ 
    foreach ($childArray as $value) 
    { 
    $singleArray[] = $value; 
    } 
}
Source by getsourcecodes.com #
 
PREVIOUS NEXT
Tagged: #convert #multidimensional #array #single #array #php
ADD COMMENT
Topic
Name
1+5 =