How can I transform the keys of the following array to strings in PHP?
$array = array(
0 => 'a',
1 => 'b'
);
Expected:
$array = array(
'0' => 'a',
'1' => 'b'
);
Basically I need to change a normal array to an associative array but the keys must not be integers, because of a bug in ZF1..
Update:
The bug in ZF1 is not a bug, but a reserved word; please see the other question Zend multiCheckbox default values bug for explanation why I thought I needed this one.