紧急求助,图片分个读取
array (
'meta_Title' => '标题',
'meta_Description' => '分享',
'meta_Keywords' => '分享',
'intro' => '
',
'photo_narrate' => '',
'photo' => '1/4_1324877334.jpg',
)
这个是mysql数据量保存的一个字段的内容,现在我想把里面的图片循环读取出来,该如何读取?
------解决方案--------------------给你提个建议,既然你存的是数组,就先序列化一次,在写入数据库,读取时在反序列化,这样教好处理些
------解决方案--------------------preg_match_all("/(?foreach($yy[0] as $key=>$value){
echo "图片".($key+1)."地址为:".$yy."
";
}
------解决方案--------------------PHP code$img_arr = explode("",$array['intro']);$count = count($img_arr);for($i = 0 ; $i";}<div class="clear">
</div>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn