Created
October 24, 2014 14:19
-
-
Save fomigo/31c77e5236516859a7ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$month_arr = array('01' => 'Янв', | |
'02' => 'Фев', | |
'03' => 'Мар', | |
'04' => 'Апр', | |
'05' => 'Мая', | |
'06' => 'Июн', | |
'07' => 'Июл', | |
'08' => 'Авг', | |
'09' => 'Сен', | |
'10' => 'Окт', | |
'11' => 'Ноя', | |
'12' => 'Дек' | |
); | |
$time = strtotime($input); | |
$month = strftime('%m', $time); | |
$day = strftime('%d', $time); | |
$year = strftime('%Y', $time); | |
return $day . $month_arr[$month] . $year; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment