<?php $arr = array( 0 => array( 0 => array( 'name' => 'test1', 'country' => 'abc' ), 1 => array( 'name' => 'test2', 'country' => 'xyz' ) ), 1 => array( 'name' => 'test3', 'country' => 'pqr' ), 2 => array( 0 => array( 'name' => 'test1', 'country' => 'abc' ), 1 => array( 'name' => 'test2', 'country' => 'xyz' ), 2 => array( 'name' => 'test1', 'country' => 'abc' ), 3 => array( 'name' => 'test2', 'country' => 'xyz' ) ), 3 => array( 'name' => 'test3', 'country' => 'pqr' ), ); $new = []; foreach($arr as $subarr){ $new = array_merge($new, $subarr); } var_dump($new);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`