php字符串数组互转

数组转字符串:
$arr = array('b','i','u','u','u');
$str = implode(',',$arr);

字符串转数组:
$str = "Hello world. It's a beautiful day.";
$arr = explode(" ",$str);

你可能感兴趣的:(PHP)