Timeline for How to insert element into arrays at specific position?
Current License: CC BY-SA 2.5
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 28, 2010 at 15:32 | comment | added | Peter O'Callaghan | I wouldn't expect that to work since $array_2 is associative and the concept of position is generally not relevant in such a situation. | |
Jul 28, 2010 at 15:03 | comment | added | Kirzilla | Try this magic_insert(3, array("wow" => "wow"), $array_2); Take $array_2 from question text. | |
Jul 28, 2010 at 14:58 | history | answered | Peter O'Callaghan | CC BY-SA 2.5 |