Blogger Information
Blog 29
fans 0
comment 0
visits 34509
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php 字符串数组相互转换
徐郭鹏的博客
Original
720 people have browsed it
//字符串转为数组
$str = "Hello world. I love Xian!";
print_r (explode(" ",$str));
//数组转为字符串
$arr = array('Hello','World!','I','love','Xian!');
echo implode(" ",$arr);


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post