<?php $arr = [ "old" => [ "uk" => "unik", "en" => "eng", "fr" => "fren" ], "new" => [ "uk" => "united kingdom", "en" => "english", "fr" => "french" ] ]; $output = []; $codes = ['uk', 'en', 'fr']; array_walk_recursive($arr, function ($value, $key) use (&$output) { $output[$key][] = $value; }); print_r($output);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`