Answers for "php reduce array to single dimensional"

PHP
0

convert multidimensional array into single dimension php

$arrayMult = [ ['a','b'] , ['c', 'd'] ];
$arraySingle = call_user_func_array('array_merge', $arrayMult);
// $arraySingle is now = ['a','b', 'c', 'd'];
Posted by: Guest on April-21-2021

Code answers related to "php reduce array to single dimensional"

Browse Popular Code Answers by Language