total

PHP|一段Code

function getTotal($products_costs, $tax) {$total = 0.00;$callback =function ($pricePerItem) use ($tax, &$total){$total += $pricePerItem * ($tax + 1.0);};array_walk($products_costs, $callba