Implode () Yesterday is to convert the array into a string, mainly used with this, but he converted the string will have a certain rule, if there is a division in the middle, I would like to introduce the implode () function usage.
Official Method Introduction
Implode (Separator,array)
The implode () function returns a string of content arrays. Implode-join array elements with a string
| The code is as follows |
Copy Code |
|
$arr = Array (' Hello ', ' Baidu! ', ' beautiful ', ' Day! '); echo Implode ("", $arr);
?>
|
Output.
Hello Baidu! Beautiful day!
So I can see a implode usage, it is actually so simple oh.
http://www.bkjia.com/PHPjc/445623.html www.bkjia.com true http://www.bkjia.com/PHPjc/445623.html techarticle implode () yesterday is to convert the array into a string, the main use and in this, but he converted the string will have a certain rule, if the middle has a tangent character, the next ...