The printf function formats complex strings using a single expression.
<?php $n = 15.32; $log = log ($n); printf ("log (%0.2f) = %.5f\n", $n, $log); ?>
Maths: %d; English: %d; History: %d; Biology: %d.
and