I have array
array (
a => "1",
b => "2",
c => "3"
)
If I Insert "4" at position "b". old value at position b is move to position "c". and old value at position c is move to position "d".
note position "d" is auto create when Insert value. if key in array is a,b,c,d,e,f,g when Insert value in array, It auto create position "h"
So Result is:
array (
a => "1",
b => "4",
c => "2",
d => "3"
)
how do I do? Or have some suggestions