I have an array. It looks like this
$choices = array(
array('label' => 'test1','value' => 'test1'),
array('label' => 'test2','value' => 'test2'),
array('label' => 'test3','value' => 'test3'),
)
Now i would like to prepend this value in $choices
array
array('label' => 'All','value' => 'all'),
It looks like I cannot use array_unshift
function since my array has keys.
Can someone tell me how to prepend?