Hey guys,
So i have a variable that i want to check. I want the script to check if a number is over 150 then break it down into multiple numbers each up to 150.
so if the number is 900, there will be six chunks of 150. if the number is say 800, there will be 5 chunks of 150 and one chunk of 50. etc
something like:
<?php
if($OrderWeight > 150){
$OrderWeight = explode("150", '$OrderWeight');
$i=0;
while ($i < $OrderWeight) {
$OrderWeight[$i];
}
} else {
}
?>
Thanks Guys.
I feel like this is a very simple equation, I'm just missing a simple php function