Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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'];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #multidimensional #array #single #dimension #php
ADD COMMENT
Topic
Name
3+3 =