How do I turn an array into a string?
Just use the delimiter as the first argument and the array as the second.
Here we go:
<?php
$myarray = array("I","love","washing","up");
$mystring = implode(" ", $myarray);
echo "$mystring";//I love washing up
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More arrays PHP Questions
How can I check if a value is already in an array?How do I write my own sort function?
How do I reverse sort the members of an array?
How can I create an array of the letters of the alphabet?
I am not interested in the values in the arrays, how can I discard them?
