获取当前img字段$pics = $this->v['img'];$pics = explode('|',$pics);//将字符串转换为数组if(is_array($pics)){ foreach($pics as $v){ echo $v;//这个就是获取到的图片路径 }}