I have an array which i want to insert a new value into the middle without losing any values. Is there an array function for this?
Thanks!
Code:
ARRAY( [1] => "a" [2] => "c" [3] => "d" ) //I would like to insert "b" at key [2].. creating this: ARRAY( [1] => "a" [2] => "b" [3] => "c" [4] => "d" )
Comment