On Monday 11 November 2002 17:20, Tomasz Ciesielski wrote:
> Hi. That's my problem:
> class MYCLASS {
> var $z = array();
> function addOne($PRODUCT_ID,$IL,$PR) {
> $this->z[$PRODUCT_ID]=array("IL" => $IL,
> "PR" => $PR);
> }
> function myPrice() {
> $cn = 0.0;
> reset($this->z);
> while (list($id,
Hi. That's my problem:
class MYCLASS {
var $z = array();
function addOne($PRODUCT_ID,$IL,$PR) {
$this->z[$PRODUCT_ID]=array("IL" => $IL,
"PR" => $PR);
}
function myPrice() {
$cn = 0.0;
reset($this->z);
while (list($id,$vals) = each($this->z)) {
problem here! -> $cn=$cn + $vals["PR"]*$val
2 matches
Mail list logo