An array is a special variable, which can hold more than one value at a time.

sometimes required to convert a PHP array to string. I'll tell how to use it with examples PHP implode().

The implode() function returns a string from the elements of an array.



Separator is an optional,it's Specifies what to put between the array elements. Default is "" (an empty string).An array is Required. The array to join to a string.

See below example

$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);

//Hello World! Beautiful Day!