Phpimplode () function instructions. Implode () converted the array into a string yesterday. it is mainly used here. However, the converted string has certain rules. if there is a delimiter in the middle, next implode () yesterday is to convert the array into a string, mainly used here, but the string he converts will have certain rules, if there is a Shard in the middle, next I will introduce the usage of the implode () function.
Official Method introduction
Implode (separator, array)
The implode () function returns a string array of content. Implode-Join array elements with a string
| The code is as follows: |
|
|
$ Arr = array ('Hello, 'Baidu! ', 'Beautiful', 'day! '); Echo implode ("", $ arr );
?>
|
Output.
Hello Baidu! Beautiful day!
In this way, I can see the use of implode, which is actually so simple.
Http://www.bkjia.com/PHPjc/445623.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445623.htmlTechArticleimplode () yesterday is to convert the array into a string, the main use and lies in this, but he converted the string will have a certain rule, if there is a delimiter in the middle,...