Answers for "how to make array from 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
0

array in php - multidimintion

Array
(
    [0] => Array
        (
            [0] => Adel
            [1] => mona
            [2] => basant
            [3] => mohamed
            [4] => seif
        )

    [1] => Array
        (
            [0] => Alaa
            [1] => do33a
            [2] => toka
            [3] => yousr
            [4] => eyad
        )

)
Posted by: Guest on June-09-2021

Code answers related to "how to make array from multidimensional array php"

Browse Popular Code Answers by Language