Home  >  Article  >  Backend Development  >  数组合并有关问题

数组合并有关问题

WBOY
WBOYOriginal
2016-06-13 12:43:45886browse

数组合并问题
$act_arr = array(0=>'aaa',2=>'bbb');
我要变成下面的字符串
'aaa','bbb'
使用implode(',',$act_arr);
结果是aaa,bbb
怎么用快的方法,最好不要遍历,实现我要的效果。

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