<?php
# склоненеE слов
function sclon_value($value,$arr){
$temp = strval($value);
$temp = $temp[strlen($temp)-1];
return (($temp > 1 and $temp < 5 and (intval($value) > 19 or intval($value) < 10)) ? $arr[1] : ($temp == 1 ? $arr[0] : $arr[2]));
}
?>