Formatting a price with printf()
<? $price = 5; $tax = 0.075; printf('The dish costs $%.2f', $price * (1 + $tax)); ?>
Maths: %d; English: %d; History: %d; Biology: %d.
and