2014-09-06 11:59:46 -04:00
|
|
|
<?php
|
|
|
|
|
2014-09-06 12:27:03 -04:00
|
|
|
if(! function_exists("string_plural_select_cs")) {
|
|
|
|
function string_plural_select_cs($n){
|
2021-02-01 12:47:38 -05:00
|
|
|
$n = intval($n);
|
2023-04-09 01:58:49 -04:00
|
|
|
if (($n == 1 && $n % 1 == 0)) { return 0; } else if (($n >= 2 && $n <= 4 && $n % 1 == 0)) { return 1; } else if (($n % 1 != 0 )) { return 2; } else { return 3; }
|
2014-09-06 12:27:03 -04:00
|
|
|
}}
|