Hello,
I've got a some parts of code that I cannot seem to combine together in such a way that it works...
here's the first part:
$arrays = array(
array($price1, $price6, $price11),
array($price2, $price7, $price12),
array($price3, $price8, $price13),
array($price4, $price9, $price14),
array($price5, $price10, $price15)
);
base_m=5;
{$item['arrays'] = round ((($item['arrays']+5) *1.85),0);
$item['arraysfinal'] = $base_m*(ceil(($item['arrays'])/$base_m));}
//the arrays are now renamed to arraysfinal
Well that was basically the idea, but it doesn't work... I got 5 arrays with each three prices in every array. but I cannot seem to get them to work.
Right now, it works if I put that same part of code (the last bit) seperately for all 15 prices. That gives 15 rows of code and I'm looking for a way to combine that with the help of an array.
Anybody any idea? Thank you very much!