<?php$arr1 = ['data'=>[1, 2, 3]];$arr2 = ['data'=>[4, 5, 6]]; $merge = array_merge($arr1['data'], $arr2['data']);var_dump($merge);
Standard input is empty
array(6) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) [5]=> int(6) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!