Help with PHP function that will take $bytes and $rate (per GB) and return $total
- by stormist
I was hoping someone might help with a function that given two parameters:
@param $bytes : total amount in bytes of data consumed
@param $rate : rate per GB, example .22 (for 22 cents)
@returns Total amount owed
Rounded to nearest cent of course. Thanks in advance for any help.