How can I convert elements of an array to a string?
E.g.
From
$arr = array('Hello!!!', 'How', 'Are', 'You!');
to
Hello!!! How Are You!
You can use either the implode() or join() function to convert the elements of an array to a string.
Here is an example:
<?php$arr = array('Hello!!!', 'How', 'Are', 'You!');echo implode(" ",$arr);echo join(" ",$arr);?>