'ello all.
This seems like a dumb question, but I can't seem to find a built in function.
Is there an easy way to swap out an array key for another value?
i.e.
I have
Array
(
[0] => sadasd
[1] => New
[2] => FALSE
[3] => sadasdsa
[4] => dsadsa
[5] => 2007
[6] => sadasd
[7] => dasdsad
[8] => dsadsad
[9] => sadsad
[10] => 0
[11] => sadsad
[12] => NEUTRAL
[13] => 0
[14] => 22550
[15] => sgfgsa
[16] => asdasdsa
[17] => sadasd
[18] => dasda
[19] => dsad
[20] => dsadsa
[21] => dsadsad
[22] => dasdsad
)
Let's say I want to swap key 14 for 'price'.
Is there a function to let me do this?