I have an array $email
like this:
Array
(
[email_id] => bob2@example.com
)
Array
(
[email_id] => bob3@example.com
)
Array
(
[email_id] => bob4@example.com
)
I need this array to be in this format
'bob2@example.com', 'bob3@example.com', 'bob4@example.com' // RESULT EXPECTED
I am doing this to get my result:
$emails = implode(", " , $email);
But it results in this:
bob2@example.combob3@example.combob4@example.com // ACTUAL RESULT
What should i do get the result?