ello folks,
i have the following lines of code:
for ($i = 0; $i < count($cart) - 1; ++$i) {
//$treshold[$cart[$i][ref]] += $cart[$i][amount];
echo \"treshold[\" . $cart[$i][ref] . \"] += \" . $cart[$i][amount] . \"<br>\";
}
This works and gives me some output like
treshold[BY087] += 30
treshold[BY087] += 15
treshold[GGGGG4] += 6
From the moment i uncomment that second line thing go wrong.
Apache starts eating all my memory so i think the loop turns infinite for some reason that beats me.
What am i missing here?
Putting the count() outside the condition and predeclaring $treshold doesn\'t solve my prob.
TIA
vanne