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

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

$this->goods = Array()

哥们

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

$this->goods = new Array()


构造方法不要public

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


懂?
 

原文地址:https://www.cnblogs.com/yangzhi/p/3576573.html