Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function days($dd){
- $dd = 11;
- $d = $dd%10;
- if (($d == 1)&&!($dd == 11)){
- $a = $dd.' день';
- }
- if ((($d==2)||($d==3)||($d==4))&&!(($dd==12)||($dd==13)||($dd==14))){
- $a = $dd.' дня';
- }
- else {
- $a = $dd.' дней';
- }
- return $a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement