i have a array like this
Array
(
[0] => Array
(
[to_id] => 3
[email] => [email protected]
[user_id] => 3
)
[2] => Array
(
[to_id] => 2
[email] => [email protected]
[user_id] => 2
)
[4] => Array
(
[to_id] => 5
[email] => [email protected]
[user_id] => 5
)
)
and i would like to get array like below
Array
(
[0] => Array
(
[email] => [email protected]
[user_id] => 3
)
[2] => Array
(
[email] => [email protected]
[user_id] => 2
)
[4] => Array
(
[email] => [email protected]
[user_id] => 5
)
)
i got this working by looping with foreach , but i would like to do it single array function ,is it possible ,please help