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 do I find out if a value is already in an array?How do I return all the values in an array?
How do I sort alphanumeric array data correctly?
How can I display a 2 dimensonal array?
How can I reverse sort an array keeping the correlation between the index and value?
