时间:2021-07-01 10:21:17 帮助过:30人阅读
<?php function tax($total,$tax_amount){ $tax_rate = $tax_amount * .01; $tax = $total * $tax_rate; return $value = $tax + $total; } $price = 50.00; //In U.S. Dollars $taxrate = 6.5; //In percentage echo "$".tax($price,$taxrate); ?>
希望本文所述对大家的php程序设计有所帮助。