,图片分个读取

WBOY
Release: 2016-06-13 10:17:23
Original
746 people have browsed it

紧急求助,图片分个读取
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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template