Guten Nachmittag euch allen :)
ich habe ein kleines Syntax bzw. Denkproblem. Ich habe folgende arrays :
print_r($_POST['id']);
Array ( [312] => 4633 [313] => 4632 )
print_r($_POST['ta']);
Array ( [312] => adwdasdasdas [313] => dassdaadsasd )
und die sortiere ich via PHP wie folgt um
$cx = 0; $cz = 0;
# Array in Array raussortieren
foreach ($_POST['id'] as $fea) {$id[$cx] = $fea; $cx++;}
foreach ($_POST['ta'] as $fec) {$ta[$cz] = $fec; $cz++;}
print_r($_POST['id']);
Array ( [0] => 4633 [1] => 4632 )
print_r($_POST['ta']);
Array ( [0] => adwdasdasdas [1] => dassdaadsasd )
...
nun möchte ich auch gerne das FILES Array umsortieren wie oben ... nur wie mache ich das ?
print_r($_FILES);
Array ( [anhang] => Array ( [name] => Array ( [312] => xyz.txt [313] => abc.txt ) [type] => Array ( [312] => text/plain [313] => text/plain ) [tmp_name] => Array ( [312] => /tmp/php8FGWRU [313] => /tmp/php2dROAF ) [error] => Array ( [312] => 0 [313] => 0 ) [size] => Array ( [312] => 1671 [313] => 677 ) ) )
danke im Vorraus
Kris :)