racl101 + integer   21

PHP Array Merge two Arrays on same key - Stack Overflow
This particular example: $sumArray = array_map(function ($a1, $b1) { return [ 'key1' => $a1, 'key2' => $b1 ]; }, $array1, $array2); can let you combine the elements of two arrays, from the same integer position-based key (i.e. 0,1,2,3,...) etc. assuming they are the same size, into one array with custom keys for each array's elements from the same integer position-based key.
stackoverflow  howto  example  php  merge  combine  arrays  same  position  integer  key  guide  reference  array_map 
january 2018 by racl101

Copy this bookmark:



description:


tags: