$grand_total += $sub_total; #### # Add the current sub-total to the grand-total $x += $y;