/** * Get first letters in month * @param mixed $num - number of month. Notice: 1 and 01 - the same things * @param int $letters - count of FIRST letters in month name * @return - first $letters in month with number $num */ public static function shortMonth($num, $letters = 3) { $month = Dates::month($num); return mb_substr($month, 0, $letters, 'UTF-8'); }