/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ foreach ($array as $key => $value) { { $key = $index.'_'.$key; } { $new_array = array_flatten($value, $new_array, $key); } else { $new_array[$key] = $value; } } return $new_array; }