时间:2021-07-01 10:21:17 帮助过:138人阅读
list($a1, $a2, $a3) = explode('|', $aaaa);
explode
list($a1, $a2, $a3) = explode('|', $aaaa);
正解
http://www.w3school.com.cn/php/func_string_explode.asp
了解一下这个explode函数
$aaaa = "image/1.jpg|image/2.jpg|image/3.jpg"; $ar=explode("|",$aaaa); echo ""; print_r($ar); echo "";