Hey,
hab mich mal bisschen mit mehrdimensionalen Arrays ( offenbar die Lösung meines CSV Problems ) beschäftigt.
ich habe die Arrays:
$ar_avg , $ar_merker, $abteilung
print_r ($ar_avg);
=
Array ( [0] => 2.75 [1] => 4.5 [2] => 3.5 [3] => 2.5 [4] => 4.5 [5] => 1.5 [6] => 4.5 [7] => 0.5 [8] => 5 [9] => 3.5 [10] => 2 [11] => 2.5 [12] => 4.25 [13] => 4.5 [14] => 4.25 [15] => 0.5 [16] => 6 [17] => 4.5 [18] => 6.75 [19] => 4.5 [20] => 4.5 [21] => 4.5 [22] => 3.5 [23] => 2.5 )
print_r ($ar_merker);
=
Array ( [0] => 4 [1] => 4 [2] => 4 [3] => 4 [4] => 4 [5] => 4 [6] => 4 [7] => 4 [8] => 3 [9] => 4 [10] => 4 [11] => 4 [12] => 4 [13] => 4 [14] => 4 [15] => 4 [16] => 4 [17] => 4 [18] => 4 [19] => 4 [20] => 4 [21] => 4 [22] => 4 [23] => 4 )
print_r ($abteilung);
Array ( [0] => ASSR_K [1] => AWZ_IK [2] => ConSRK [3] => EinfKK [4] => EinSRK [5] => Log13K [6] => MarSNK [7] => PENATK [8] => Per13K [9] => VeEESK [10] => XME-IK [11] => §7157K )
ich hätte jetzt gerne ein Array ber wiefolgt aussieht:
Array ([0] => ASSR_K [0] => 2,75 [0] => 4 [0])
also "ASSR_K";"2,75";"4"; als Ausgabe
ein mix aus drei Arrays.
Hab ich das Prinzip richtig verstanden?
hab mich mal bisschen mit mehrdimensionalen Arrays ( offenbar die Lösung meines CSV Problems ) beschäftigt.
ich habe die Arrays:
$ar_avg , $ar_merker, $abteilung
print_r ($ar_avg);
=
Array ( [0] => 2.75 [1] => 4.5 [2] => 3.5 [3] => 2.5 [4] => 4.5 [5] => 1.5 [6] => 4.5 [7] => 0.5 [8] => 5 [9] => 3.5 [10] => 2 [11] => 2.5 [12] => 4.25 [13] => 4.5 [14] => 4.25 [15] => 0.5 [16] => 6 [17] => 4.5 [18] => 6.75 [19] => 4.5 [20] => 4.5 [21] => 4.5 [22] => 3.5 [23] => 2.5 )
print_r ($ar_merker);
=
Array ( [0] => 4 [1] => 4 [2] => 4 [3] => 4 [4] => 4 [5] => 4 [6] => 4 [7] => 4 [8] => 3 [9] => 4 [10] => 4 [11] => 4 [12] => 4 [13] => 4 [14] => 4 [15] => 4 [16] => 4 [17] => 4 [18] => 4 [19] => 4 [20] => 4 [21] => 4 [22] => 4 [23] => 4 )
print_r ($abteilung);
Array ( [0] => ASSR_K [1] => AWZ_IK [2] => ConSRK [3] => EinfKK [4] => EinSRK [5] => Log13K [6] => MarSNK [7] => PENATK [8] => Per13K [9] => VeEESK [10] => XME-IK [11] => §7157K )
ich hätte jetzt gerne ein Array ber wiefolgt aussieht:
Array ([0] => ASSR_K [0] => 2,75 [0] => 4 [0])
also "ASSR_K";"2,75";"4"; als Ausgabe
ein mix aus drei Arrays.
Hab ich das Prinzip richtig verstanden?
Kommentar