I have an array like:
Array (
[0] => Array (
[A] => khaja.ghc@cdc.com
)
[1] => Array (
[A] => bag@example.com
)
)
Is there any easy process to store khaja.ghc@cdc.com and bag@example.com in an array in php? If so please help me.
I am doing this by foreach() method and after getting element I stored them in an array. Then finally by array_push() method I got the required array. But I think I missed easy process. Can you help me .
You still can use
foreachmodifing the value. Tryand your
$arraywill look like you want it to look.