I have 2 arrays:
$array["a"];
$array["b"];
$array["c"];
$array["d"];
$otherarray["otherkey"];
I want to merge it and that $otherarray["otherkey"]
is right after $array["b"]
I am using array_merge($array,$otherarray)
but this creates this array:
$newarray["a"];
$newarray["b"];
$newarray["c"];
$newarray["d"];
$newarray["otherkey"];
Is there a way to insert it right after ["b"] so it becomes:
$newarray["a"];
$newarray["b"];
$newarray["otherkey"];
$newarray["c"];
$newarray["d"];