图片集分割morepic字段内容:
<?php$picr=explode(egetzy('rn'),$navinfor[morepic]);for($p=0;$p<count($picr);$p++){$spicr=explode("::::::",$picr[$p]);?>小图地址:<imgsrc="<?=$spicr[0]?>"/>大图地址:<imgsrc="<?=$spicr[1]?>"/>图片名称:<?=$spicr[2]?><?php}?>
输出代码:
图片集分割morepic字段内容:
<imgsrc="https://file.moyublog.com/d/file/sell/2014-07-02/154f3b8dd3c1d6d569d886ad0c6f2800.jpg"/><imgsrc="https://file.moyublog.com/d/file/sell/2014-07-02/5472a488663bf1af5802948b626dac46.jpg"/><imgsrc="https://file.moyublog.com/d/file/sell/2014-07-02/b61ea31ea9f1de3330a79d442b8b59b1.jpg"/><imgsrc="https://file.moyublog.com/d/file/sell/2014-07-02/b29de812f7e01cb75fa0dfefa1bd3502.jpg"/>
图片集提取第一帧图片
<?php$str=$navinfor[morepic];$exp=explode("::::::",$str);?><imgsrc="<?=$a=$exp[1];?>"alt="第一张"/><?php?>
输出代码如下:
提取第一帧图片
<imgsrc="https://file.moyublog.com/d/file/sell/2014-07-02/154f3b8dd3c1d6d569d886ad0c6f2800.jpg"alt="第一张"/>