php 项目开发...(泪于血的道路...)
尼玛的数组建立竟然是这样的:
$this->goods = Array()
哥们
千万不要这样哦(别java写多了):
$this->goods = new Array()
构造方法不要public
function __construct(){
$this->goods = Array();
$this->countItem = 0;
$this->countMoney = 0;
}
懂?
尼玛的数组建立竟然是这样的:
$this->goods = Array()
哥们
千万不要这样哦(别java写多了):
$this->goods = new Array()
构造方法不要public
function __construct(){
$this->goods = Array();
$this->countItem = 0;
$this->countMoney = 0;
}
懂?