Answers for "string to single dimension array in php"

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 "string to single dimension array in php"

Browse Popular Code Answers by Language