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 check if a variable is of array type?What is the starting salary of Php developer in india?? after 1 year experience how much i could get??
I have an array of a hundred or so lines, each line has data with "|" separated values. I need to scan through this array, and select the line whose first 5 characters matches a text string. Any ideas or questions?
how do i send the information from one page to another page using post method.
what is the return value of array_unique()?
