Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮我将字符串转换为一维数组...
例子
$str = abc,xyz,pqr;
转换成
$arr = array('abc','xyz','pqr');
试试explode喜欢
explode
$str = 'abc,xyz,pqr'; $str_arr = explode(',',$str); print_r($str_arr);
试试这个爆炸
使用php函数
explode(',',$str);