Re: PHP String Functions With Examples The implode() function returns a string from the elements of an array.
<?php
$arr = array('Hello','World!','Beautiful','Day!');
echo implode(" ",$arr);
?>
The output of the code above will be:
Hello World! Beautiful Day! |