I tried to find the answer to my question, but could not find the one that did this without changing the numerical indices.
Is there a way to add a string to the beginning of an array without reordering keys (numeric keys) without using a loop?
thank
EDIT:
I will try to explain the scenario. (I am using CodeIgniter).
I have an array that is used throughout my application. This array is also used to create a drop-down list and check these drop-down list values in the form that I have. What I would like to do is insert an empty value at the beginning of the array so that by default I get an empty parameter.
So from this
1 => Hello
2 => World
to
'' = > ''
1 = >
2 = >