implode function in PHP is used to "join elements of an array with a string"
The implode function in PHP is easily remembered as "array to string", which simply means that it takes an array and returns a string. It rejoins any array elements and returns the resulting string, which may be put in a variable.
$arr = Array ("A","E","I","O","U");
How to do that?
$str = implode("-",$arr);
So your resulting string variable $str will contain: