//字符串转为数组
$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!