sfw_numerus
Description
Echo a string depending on $number
Default is to work with 3 strings for zero, singular and plural. If you offer more than 3 strings, the last one is always used as plural, while every other is user by comparing it's numeric array index with $number
Since: 1.0.0
Code
<?php function sfw_numerus( $number, $defaults, $strings = array() ){
…
} ?>
Parameter
- $number
- (int)
- $defaults
- (array)
- $strings
- (array)
Default: array()