I have this array:
array(
(int) 0 => array(
'region_id' => array(
(int) 0 => '19'
(int) 1 => '23'
)
)
)
I would like to transform it, in:
array(
(int) 0 => array(
'region_id' => '19'
),
(int) 1 => array(
'region_id' => '23'
),
)
I read there is a magic class in cakephp (Hash).
Can I use it to transform the array or do I have to do it manually?