Archive for the ‘array_merge’ tag
Tückisches array_merge()
Welches Ergebnis würdet ihr erwarten wenn ihr 2 Arrays merged?
$a = array(
'n' => 'n',
'o' => 'o',
'p' => 'p',
);
$b = array(
'x' => 'x',
20 => 14,
'z' => 'z',
);
$c = array_merge($a, $b);
OK, ich verrate es euch, das Ergebnis sieht so aus:


