$input |
= |
[ 0 => [ 'citrus' => [ 0 => 'orange', ], 'berries' => [ 0 => 'blackberry', 1 => 'raspberry', ], 'others' => 'banana', ], 1 => [ 'citrus' => 'pineapple', 'berries' => [ 0 => 'blueberry', ], 'others' => [ 0 => 'litchis', ], ], 2 => [ 'citrus' => [ 0 => 'pineapple', ], 'berries' => [ 0 => 'blueberry', ], 'others' => 'litchis', ], ] |
$test_output |
= |
[ 'result' => [ 'array' => [ 'citrus' => [ 0 => 'pineapple', ], 'berries' => [ 0 => 'blueberry', 1 => 'raspberry', ], 'others' => 'litchis', ], ], 'php_version' => '7.1.33 Linux x86_64', ] |