码迷,mamicode.com
首页 > 其他好文 > 详细

stdclass

时间:2016-12-19 13:56:01      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:[]   new   get   bsp   ems   定义   数组名   数组   nbsp   

      $item = new stdClass();
      $item->goods_id = $item_goods->getID();
      $item->goods_name = $item_goods->getName();
 
      
      $items[] = $item;

或者

 $items[$cart[0]] = $item;  //定义数组名

 

stdclass

标签:[]   new   get   bsp   ems   定义   数组名   数组   nbsp   

原文地址:http://www.cnblogs.com/keta/p/6196921.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!