php如何截取指定字符串前后位置的内容
$str = 'aaaaaa,vvvvvv,ccccc,dddd';
$str = explode(",", $str);
echo $str[0]; //输出aaaaaa
echo $str[1]; //输出vvvvvv
... //类推
$str = 'aaaaaa,vvvvvv,ccccc,dddd';
$str = explode(",", $str);
echo $str[0]; //输出aaaaaa
echo $str[1]; //输出vvvvvv
... //类推
$str = 'aaaaaa,vvvvvv,ccccc,dddd';
$str = explode(",", $str);
echo $str[0]; //输出aaaaaa
echo $str[1]; //输出vvvvvv
... //类推