php 项目开发...(泪于血的道路...)

尼玛的数组建立竟然是这样的:

$this->goods = Array()

哥们

千万不要这样哦(别java写多了):

$this->goods = new Array()


构造方法不要public

	function __construct(){
		$this->goods = Array();
		$this->countItem = 0;
		$this->countMoney = 0;
	}


懂?
 

posted @ 2013-01-24 20:44  梦你所梦  阅读(101)  评论(0编辑  收藏  举报