$minutes=1510; $hours = floor($minutes / 60).' hours and '.($minutes - floor($minutes / 60) * 60) .' minutes';