Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php flatten multidimensional array

<?php

$notFlat = [[1,2],[3,4]];
$flat = array_merge(...$notFlat);
var_dump($flat);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #flatten #multidimensional #array
ADD COMMENT
Topic
Name
9+3 =