Implode and explode in php

In php the implode function joins the array elements with desired glue (character);
Take an example, we have array of email-ids and we want to join these ids with comma, we shall do like this.

echo $emails;

//output is,,;


Explode function converts string into an array by splitting string from delimiter, when it finds given delimiter in string.


//output is 
    [0] =>
    [1] =>
    [2] =>