# Blade (24.09.2015 / 00:00)
[php]<?php
function getRightEnding($number, $setOfEndings) {
$t = $number % 10;
switch($t) {
case 1:
return $setOfEndings[0];
case 2:
case 3:
case 4:
return $setOfEndings[1];
default:
r
# Blade (24.09.2015 / 00:00)
[php]<?php
function getRightEnding($number, $setOfEndings) {
$t = $number % 10;
switch($t) {
case 1:
return $setOfEndings[0];
case 2:
case 3:
case 4:
return $setOfEndings[1];
default:
r