Home >php教程 >php手册 >implode,explode的使用

implode,explode的使用

WBOY
WBOYOriginal
2016-06-13 09:46:10959browse

implode把数组转成字符串的函数,在组合SQL语句时候使用特好使!

比如

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

返回的字符串就是  a,b,c

 

explode把字符串组成的数组

 

Statement:
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