$count) { $total_value += $cartinfo[$id]['price'] * $count; $total_num += $count; } } ?>