Answers for "how to transpose numeric array 2 dimensi with 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

Browse Popular Code Answers by Language