Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function odmiana($in, $lp, $lm1, $lm2) {
- if ($in == 1) {
- return $in . ' ' . $lp;
- } elseif (($in % 10 > 1) and ($in % 10 < 5) and !(($in % 100 >= 10) and ($in % 100 <= 21))) {
- return $in . ' ' . $lm1;
- }
- return $in . ' ' . $lm2;
- }
Advertisement
Add Comment
Please, Sign In to add comment