<?php $total = 286; // Floor the minutes so we only get full minutes $mins = floor($total / 60); // Calculate how many secs are left $secs = $total - ($mins * 60); echo "$mins minutes and $secs seconds";
You have javascript disabled. You will not be able to edit any code.