Help with PHP function that will take $bytes and $rate (per GB) and return $total
Posted
by stormist
on Stack Overflow
See other posts from Stack Overflow
or by stormist
Published on 2010-04-08T17:52:15Z
Indexed on
2010/04/08
18:03 UTC
Read the original article
Hit count: 292
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.
© Stack Overflow or respective owner