PHP translate shorth month name
This procedure sow how to translate in own language short month names
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
function getshortmonthname($month) { $months = array( 1 => "Яну", 2 => "Фев", 3 => "Мар", 4 => "Апр", 5 => "Май", 6 => "Юни", 7 => "Юли", 8 => "Авг", 9 => "Сеп", 10 => "Окт", 11 => "Ное", 12 => "Дек"); return $months[$month]; } |
usage :
1 |
echo getshortmonthname(date('n',date())); |