Henryk Plötz: Wie an ein assoziatives Array Werte anhängen

Beitrag lesen

Moin,

Was kann ich dagegen machen? Vor allem müssen die Arraywerte am Ende auch in folgender Form ausgegeben werden können (nicht nur in einer foreach-Schleife):

Schau halt in die Doku von array_merge():
|  If you want to completely preserve the arrays and just want to append them
|  to each other, use the + operator:
|
| $array1 = array();
| $array2 = array(1 => "data");
| $result = $array1 + $array2;
|
| The numeric key will be preserved and thus the association remains.

--
Henryk Plötz
Grüße aus Berlin
~~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~~
~~ Help Microsoft fight software piracy: Give Linux to a friend today! ~~