Displaying long text with an ellipsis
<? printf(substr_replace('this is a test',' ...',5)); ?>
Maths: %d; English: %d; History: %d; Biology: %d.
and