Last active
May 10, 2018 21:23
-
-
Save osbre/f0995e7ad2fa2312e5d6a182635fc1b3 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 | |
/** | |
* Replace day number to day name | |
* @number int | |
*/ | |
function replaceNumberToString($number) | |
{ | |
$dowMap = array( | |
'понеділок', | |
'вівторок', | |
'середа', | |
'четвер', | |
'п\'ятниця', | |
'субота', | |
'неділя' | |
); | |
return $dowMap[$number]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment