Usage
singular_plural($value, $singular, $plural)
Parameters
$value
(Required) (Integer or Float) The value to determine the label for
Default: None
$singular
(Required) (String) The singular label
Default: None
$plural
(Optional) (String) The plural label
Default: Adds an "s" to the singular label
Parameter Notes
If the plural form of the singular label is the same but with an “s” (like “book” and “books”), you do not need to pass the plural parameter.
Examples
When the plural simply adds an "s", no need for the third parameter.
echo singular_plural($number, 'hour');
When the plural is spelled differently, the third parameter is needed.
echo singular_plural($number, 'story', 'stories');
Source File
This function was not found in /libs/Utilities.php. Please report this error.
No Hooks
This function does not have any filters or actions available. Request one?Override
This function can not be short-circuited with an override filter. Request one?