您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP数组混写输出HTML代码,该如何处理

2024/3/24 7:34:34发布22次查看
php数组混写输出html代码
$sql = select attr_value, thumb_url . from . $globals['ecs']->table('goods_attr')
.'where goods_id='.$row['goods_id'].' and attr_id=185 order by attr_value asc';
$cm = $globals['db']->getall($sql);
$ys_arr=array();
$ysimg_arr=array();
foreach ($cm as $val)
{
$ys_arr[$val['attr_value']] = $val['attr_value'];
$ysimg_arr[$val['thumb_url']] = $val['thumb_url'];
}
$arr[$row['goods_id']]['attr_value'] =implode('、',$ys_arr);
$arr[$row['goods_id']]['thumb_url'] =implode(' ',$ysimg_arr);
thumb_url另外输出的值增加html代码,直接将图片显示出来$ysimg_arr[$val['thumb_url']] = ;
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product