/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
foreach ($_FILES as $key_ => $file) { foreach ($file as $key => $data) { foreach ($data as $model => $fields) { foreach ($fields as $field => $value) { foreach ($value as $k => $v) { $files[$key_][$model][$field][$k][$key] = $v; } } else { $files[$key_][$model][$field][$key] = $value; } } } else { $files[$key_][$model][$key] = $fields; } } } } echo '<pre>'; echo '</pre>';