ITPub博客

首页 > 应用开发 > IT综合 > php数据预存方式

php数据预存方式

原创 IT综合 作者:jyb2014 时间:2014-12-18 15:23:58 0 删除 编辑
数据库要的数据要在页面中预存是用的比较多的,通常用数组的形式
   $i=0;   
    $url=array();
    $content=array();
       $subinfo=$picnews->getsubpiclist('tb_picnews',$info['tb_date'],0);
      foreach ($subinfo as $key => $value)
      {    
        $url[$i]= $value['tb_url'];
        $content[$i]=$value['tb_content'];
       $i++;
      }
      echo $url[0];

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29753604/viewspace-1372253/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 用java得到汉字
请登录后发表评论 登录
全部评论

注册时间:2014-07-15

  • 博文量
    101
  • 访问量
    196521