<?php
function russian_text($koll = 0, $words = 0) {
if ($koll < 11 or $koll > 19) {
$koll = (string )$koll;
switch ($koll{mb_strlen($koll) - 1}) {
case 1:
return ($words[0]);
break;
case 2:
case 3:
case 4:
return ($words[1]);
break;
default:
return ($words[2]);
break;
}
}
else
return ($words[2]);
}
?>