Use of implode and explode_PHP tutorial

WBOY
Release: 2016-07-13 10:42:14
Original
871 people have browsed it

implode is a function that converts an array into a string. It is very useful when combining SQL statements!

For example

$a = array('a','b','c');
$b = implode(',', $a);
echo $b;

The returned string is a,b,c

explode an array of strings

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/636684.htmlTechArticleimplode is a function that converts an array into a string. It is very useful when combining SQL statements! For example, $a = array('a','b','c'); $b = implode(',', $a); echo $b; The returned string is a,b,c...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template