<?php $test = array( 'abc' => 123, 'def' => 456, 'test' => array( 123 => 'hip', 'hop' => null ) ); foreach ($test as $old => &$arr) { if (is_array($arr)) { unset($test[$old]); foreach ($arr as $new => $v) { $test[$old.$new] = $v; } } } var_dump($test);
You have javascript disabled. You will not be able to edit any code.