$counter=12; $tax=0.055; $taxvariable= $counter * $tax; do{ $taxvariable= number_format($counter*$tax,2); echo " Tax for $counter dollar(s) is 12 x $tax = $$taxvariable
"; $counter++; } while($counter <= 12); ?>