simple array manipulation
Posted: Sat Sep 20, 2008 7:28 am
Let say I have an example array('color'=>'green', 'size'=>'big')
How can I insert 'weight'=>'heavy' at the beginning of array?
array_unshift would not accept 'weight'=>'heavy' as a parametar.
How can I insert 'weight'=>'heavy' at the beginning of array?
array_unshift would not accept 'weight'=>'heavy' as a parametar.