if($this->itemCount <= 11) {
$item['subtotal'] = 12.95 * $item['qty'];
$item['price'] = 12.95;
$this->update_item($item['id'], $item['qty'], $item['price']);
}
但我需要一個「和」經營者在那裏檢查其是否也等於或大於2
if($this->itemCount <= 11 && => 2)
我不知道如何在PHP中做到這一點。 :(
哇,我得到了一個負二爲一的問題難道我問它不好? Yipes – adg 2011-05-18 05:05:57